I am trying to get the refreshToken under identities for users, in order to renew the access to Microsoft Graph Api, because the accessToken is valid for 1 hour.
So far:
- auth0-react:
onClick={() => loginWithRedirect({
redirectUri: process.env.NEXT_PUBLIC_REDIRECT_URI_APP,
scope: 'offline_access',
})}
- user management api is working, returning me a token;
- this token allows me to call
/api/v2/users
. the user is returned with the access token.
I have read:
- No refresh token is available on Microsoft AzureAD
- How to renew identity provider (Azure AD) access token?
I tried:
- deleted the user, logged in again, allowed offline access, and still no refreshToken under identities
Any suggestion on what could be missing?