Auth0 Home Blog Docs

Create a JWT for a given email address?

jwt
session

#1

Is there any way I can obtain a valid JWT from the Auth0 API based solely on an email address? We usually use passwordless logins, but in some cases, I want to give users a one-time URL that just logs them right in. To do that I need to get a JWT that contains their email address (which may or may not have been used to log in with passwordless before). Can it be done?


#2

I’ll answer this myself: I see that by default Auth0 uses my client secret to sign the JWT. Thus, I can easily create and sign the JWT myself using the tools in the SDK. KTHX.


#3