I’m trying to get the refresh token from Auth0 after login. I’m currently using a React app with Auth0Lock to login. Based on suggestions from various sources, I enabled Allow Offline Access
and set scope to offline_access
.
But I’m still getting the refresh_token
as null. Any help or suggested way to achive refresh_token
?
Check this point to retrieve
refresh_token
from Auth0 :Enable
Allow Offline Access
for your API, Go toApplications > APIs > [YourApi] > Access Settings
.Enable
Grant Types
for your Application, Go toApplications > [YourSpaApp] > Advanced Settings > Grant Types
and checkrefresh_token
.Make sur to add scope
offline_access
in your first/authorize
request.React auth0:
useRefreshTokens={true}
as a prop to<Auth0Provider.../>
. (The default setting isfalse
)