JWT auth - session undefined

Hi there,

I am trying to authenticate the user with a JWT. while it used to work with setAuth in v1, I can't seem to authenticate the user with the global authorization header in v2.

I pass my JWT in the headers, yet, no session get instantiated. getSession return null.

When I call client.auth.getUser(token), it returns 500 internal server error. error_id: "aaa46750-3dcb-4f7d-8871-283d4e452dbf"

I assume that there is an issue in the way I set my session.

Where is the latest documentation on setting up sessions with custom JWTs?
Was this page helpful?