Get user's JWT #7
-
What happened?[Apologies, this is not really a bug but more of a question. I tried to access discussions, but apparently it has not been enabled yet for the repo] I'm trying to access the JWT for the authenticated user to send to my backend service (which will then validate the token to get the authenticated user for the request). Can you please point me towards how I can get the token? Thank you! As an aside: What did you expect to happen?I expect to be able to fetch the user's token. What version of Remix are you using?1.12.0 |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 4 replies
-
Yes, you're correct! (I've also enabled the discussions, thanks for pointing that out). It's one of the missing features and is very high on my list. Was hoping to get to it today but chances are slim. I want to give you a way to register a callback so that you can do as you please with the ID token (and the refresh token when the rotation is not enabled) https://github.com/meza/auth0-remix-server/blob/main/src/index.ts#L232 Since the user profile and the id token is usually identical, can you use the profile for now? (For maybe a day or 2) I'd also want to make sure to provide a handy verification function so you could always send in a token and make sure it's valid before you use it. |
Beta Was this translation helpful? Give feedback.
-
Almost there! |
Beta Was this translation helpful? Give feedback.
-
This has now been released with v1.1.0 |
Beta Was this translation helpful? Give feedback.
This has now been released with v1.1.0