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_tokenfrom Auth0 :Enable
Allow Offline Accessfor your API, Go toApplications > APIs > [YourApi] > Access Settings.Enable
Grant Typesfor your Application, Go toApplications > [YourSpaApp] > Advanced Settings > Grant Typesand checkrefresh_token.Make sur to add scope
offline_accessin your first/authorizerequest.React auth0:
useRefreshTokens={true}as a prop to<Auth0Provider.../>. (The default setting isfalse)