Android Question How to clear token or re-authorize app?

JohnC

Expert
Licensed User
Longtime User
My app allows users to send emails using their gmail account.

I use this authorization method in my app:


But the user had to change their gmail password due to a security breach, now they can't send emails from my app - they get a "Can't access user's Gmail" error.

So, how can I "clear" (for a lack of a better word) the token, so the app will prompt them to re-authorize their gmail account?
 

DonManfred

Expert
Licensed User
Longtime User
As you need to use the OAuth2 class you easily can use oauth.ResetToken to force a re-authorization.
 
Upvote 0

JohnC

Expert
Licensed User
Longtime User
I will give that a shot - I forgot about that method.
 
Upvote 0
Top