Android force update token

I’m working on migration of ipd provider for our android app

Please include the following information in your post:

  • we are using android sdk com.auth0.android:auth0
  • com.auth0.android:auth0:2.8.0
  • mid sdk version is 26

I’m looking for a mechanism to force update the token,
our old provider had this flag, which was triggered when server returned 401.
I’m looking for a way to implement similar logic with a new provider.

Could you please give me some tips or point to direction?
just simply call

SecureCredentialsManager().clearCredentials()

would fully log out a user

Hey there @kotya341 welcome to the community!

Auth0 provides a similar approach using refresh tokens - Please see the following:

Essentially, if you request the offline_access scope a refresh token will be saved and automatically used to request new tokens when needed.

1 Like

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