How do I generate a JWT token?

I need to create a JWT token (RS256) and I tried but since the private key isn’t accessible as stated here: If we can not get the private key when use choose RSA256 as JWT signature algorithm

Does Auth0 have a straightforward way to just create a JWT token for my payload, instead of building an actual application with SDK integrated for authorization? Thanks!

Hi @hzxu

You cannot access Auth0’s private key. This is by design.

The best way is to generate the access token per a normal flow, like Auth Code. You cannot just “generate a JWT” as that skips all the security we make sure is in place.


1 Like