I’ve followed every guide and forum I could find related to getting an Auth0 refresh token in a flutter web SPA. But it’s still returning null.
I can see in the network inspector that there is a refresh token along with the access token (Which I can successfully access) but my SPA can’t seem to return the refresh token and just returns null.
I’m using the CanvasKit renderer if that’s relevant but here’s a checklist of this I’ve done already as I can’t share my source code:
Enabled “refresh token” in the auth0 SPA advanced settings
Have the “offline_access” scope in flutter code
Set useRefreshTokens: true in the onLoad function aswell as the cacheLocation
I’m trying to return the refresh token the same way Im successfully returning the access token on the Credentials instance e.g. “credentials.refreshToken”
I should also note my native iOS app is successfully receiving the refresh tokens. It’s just the flutter web SPA I’m unable to figure out why it’s not working and since I cant find any documentation on specifically getting refresh tokens on flutter web I’m unsure if it’s even supported.
I understand that the refreshing of tokens happens silently in the auth0 api. But I do need to access the refresh token for particular project needs (Which I understand from the documentation is discouraged, but havn’t seen any mention that it’s unsupported)