KindeK
Kinde•16mo ago•
31 replies
OmarUsman

NextJS + FastAPI

Hi there, I'm working on a project where we have a NextJS frontend which handles login and register on the frontend using the super easy Next SDK. The problem starts to form when we introduce the API that we need to make calls to.

I want to pass the JWT from the frontend over to the API and am doing so in the authorization header. From here I can use the JWK to verify the token, BUT I can't seem to figure out how to fetch additional data from Kinde such as roles, etc.

So my question is, in order to be able to fetch said additional data, would I need to handle all auth on the API side (Preferably do not want to do this 😭) or is there some sort of python SDK I can use to authorize, get roles, and get permissions on the API side using the JWT from the frontend?
Was this page helpful?