Auth0 Home Blog Docs

How to get JWT access_token?

access-token

#1

Currently the response of /oauth/token is like:
{
“access_token”: “tGmBNdeANyNKHfKfZp2tRblVRqA51Dcj”,
“refresh_token”: “wrMcHww8X8KlpClWcUfl2fE6rvulZK-t3QlgLaWbPv7HS”,
“id_token”: “eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiIsImtpZCI6Ik5qbENORVU0TlRZMU56Y3lRa0kxUmtRMk5qRkZSRVZHTlVNNE16azBNREF6UVVNeU5qUXpOUSJ9.eyJpc3MiOiJodHRwczovL3N0dWJodWIuYXV0aDAuY29tLyIsInN1YiI6ImdpdGh1YnwxMjg0MDI3NCIsImF1ZCI6Ikc0NjBCZ0VKMFV6UVJaSmczTlloNlRyRWx0cUtWQ3hvIiwiaWF0IjoxNTA3ODY0NjcwLCJleHAiOjE1MDc5MDA2NzB9.jeJeKon870vQCiXDVKa-dfJMdRqehwsCIok2oJpBYWEIDaUvhf1O0YAyZp33G-ZRHWwNE3j4Kjn-nNHJg9P20bpt9jIfSpcG8ZrcOt-CWWgjljtMVeWmWbDZBPOsTT0lJMYecnUxQtUGJkrkY_2nETjwAdmvAfcOnBts4L8PjFwH2b5dh6sO8nvYRkJg-ZiYO19GYFozAxm3dXN2Oo7IiUTbkgZ43E1rPs9SUBzqQ_L8kPBkoGBNtPugEdxv-tQbat9UO1PR9ai48CovdUW6NjW92_MINs3xFwilRgibsS6XDWFkwui8YoIpiZhwLTH_fCAL99DMoHVKUq_mBd-axw”,
“expires_in”: 86400,
“token_type”: “Bearer”
}

The access_token is opaque. How could I get a JWT access_token, is there a way to configure? Or the JWT format of access_token is not supported?


#2

Hi > @luyang , on the following urls you can find how to get an access token:


#3