How to handle the Access Token rotation?

I’m using Auth0 Vue SDK.
The lifetime of Access Token can be handle in ManagemrntAPI→Access Token Settings.
After the token expires, all APIs return 401.
This is correct and expected behavior.

After an API returns 401, https://{MY_DOMAIN}/oauth/token is called and new Access Token can be used.
This is a helpful function, but how can I handle it?

For example, If I want to make the Accress Token rotation disabled, how can I do that?

Hi @t.fukao,

If you need to get a new access token to access the Management API, you can use the Client Credentials grant flow.

This way, whenever the access token expires, you can obtain a new one by calling the /oauth/token endpoint.

Let me know if you have any questions.

Thanks,
Rueben

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.