Work Progress
Sorry for the lack of updates, I’ve been moving into a new house the last two weeks, so startup work had fallen to the wayside while I get myself (and the cat) situated.
With that said, I wrapped up the client to server API routing and JWT token verification on the server. Firebase has made this ridiculously easy to implement.
Right now, my client page has four main API calls it makes to the server, all of which need to be authenticated (and protected). On the client, I have this implemented within my API service layer. A token gets generated for whichever user is logged in and passed as an Authentication: Bearer header in the request to the server.
Once on the server, I have middleware that verifies and decodes the JWT token from the request header. From there, I have the user’s identity on the server for other API related tasks.
Next steps:
- Clean up some of the above logic – I rushed through it to get a working model and there’s some optimizations that will lead to better maintainability.
- Finish up the UX work from the last update, I have something rudimentary working but it’s rough and doesn’t provide value to the user in its current form.
- Set up a payment service.
Have a great week!
- Jonathan