Peter Marklund
Peter Marklund
KKinde
Created by Peter Marklund on 9/2/2024 in #💻┃support
What is the recommended way to do Kinde auth with a SPA app (Vue) and a REST API (Fastify)
Thanks for the long and quick reply! Just to clarify I'm using Node.js in the backend and not Python (it's easy to confuse Fastify with FastAPI :)). So if I'm reading you correctly I should be able to use the code in jwtVerify in my backend and be all set then? I'm assuming that covers point 1 above ("Verify the JWT signature:"). As far as token storage is concerned. that is something your package handles (in cookies?) so I'm assuming that is secure? To be honest I'm somewhat surprised that I need to copy paste code from the kinde Express package when I'm not even using the Express framework. That also doesn't seem ideal from an update/upgrade perspective (since I will be hand-rolling the code rather than using your library)? Shouldn't this be covered by the Kinde Node/TypeScript packages?
3 replies