auth0 changing the token expiry_in timings

 

In auth0 you can configure different expiry time for your token. To get a token, your say react sdk would call an API endpoint in your domain.

This API is what you configure under Applications -> APIs. 

Each API can have a different expiry timings and you just need to make sure you call the right API with the right expiry settings. 

For example, in the code snippet below, I am calling my API with a unique identifier below

Given that it has a expiry of 180 seconds, the token return would have the same expiry time too.


 try {
        const accessToken = await getAccessTokenSilently({
          authorizationParams: {
            audience: `https://myend`,
            scope: "read:current_user",
          },
        });


My API expiry time configuration 








Comments

Popular posts from this blog

The specified initialization vector (IV) does not match the block size for this algorithm