h
hey everyone! i'm building an app with next.js, grafbase, and supertokens. wondering if the userid generated in the email/password auth recipe can be treated like a jwt?
n
Hi @heather The access token generated by the session recipe can be used as a JWT. If you are using our frontend SDKs we provide a function to get the access token that you can then send to any service you like
h
the userID can be used as a JWT? or the JWT is accessed from the sessions? is it recommended to use a jwks endpoint? grafbase recently added support for this!
n
So the user id is a plain string, SuperTokens provides an access token that is a JWT and can be used with external services. JWKs is a better option yes. Our docs have a section covering how you can setup JWT based auth and how to configure jwks, I recommend starting there
2 Views