Workflow with separate NodeJS/Vue Webapp?
I'm wondering what the proposed workflow is for a webapp that has a backend (nodejs/express) and a frontend (vue), I'm using Supertokens now, which has code for both backend and frontend, and I would love to switch to Kinde, thanks!
5 Replies
Hi thanks for your question, what is it you're wanting the backend to do with Kinde? It will help guide you in the right direction.
My backend has user management, permission based access, etc. It's a big web application that interacts with a mySQL database. So the backend needs to know if a certain request is Authenticated, and if the required permission is met, thanks @Daniel_Kinde !
(My frontend is Vue right now, but I can easily switch it to Nuxt if needed)
Hey @Daniel_Kinde Just bumping this because I'm stuck at the moment, do you have any ideas? Thanks
Great, you can use our express SDK to handle the auth (https://github.com/kinde-oss/kinde-node-express), then you can use our Management API JS (https://github.com/kinde-oss/management-api-js) to manage permissions of the users etc.
If you were to migrate to Nuxt, this will give you the components for handle the auth all packaged up in the module, you can still use the management SDK for access to the Kinde management API
@Daniel_Kinde So when switching to Nuxt, I can use the Nuxt SDK, but when my Nuxt connects to my Express server, to get data from the db, How does my Express server know if a user is allowed to do that?
Hi @Miguel
You will be able to pass over the bearer token to the request, within Express the token will be decoded and you can access the permissions.
Let me know if you need any further help