Method on Android SDK to get a different access token given user is already in a valid Auth0 session

Hi,

Given that the user had already authenticated and has a valid auth0 session how do you get a different access token with a different audience etc.

I checked the Android SDK and could not find any such method however the web developers in our company said this was possible on the web SDK.

Hey there @markchristopherng welcome to the community!

Silent Auth (falls back to iframe) is typically used in SPAs to get an access token with a new audience without requiring users to re-auth. This is not possible in the context of our mobile SDKs as they rely on refresh tokens. In order to obtain a different token you will need to call login again with a new audience. This is because refresh tokens are scoped to the original access token.

Hope this helps to clarify!

1 Like

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