Using Account Manager to Obtain OAuth Token

I am trying to use AccountManager to get an Auth token using this code:

Account account = ...; accountManager.getAuthToken(account, "ah", false, new AuthTokenCallback(), null); accountManager.getAuthToken() 

Is this token valid for OAuth? or is it another token?

Thanks!

+2
source share
1 answer

I think for OAuth you need to use "oauth2: URL_OF_THE_SERIVE" instead of "ah".

Possible service URL (for user information such as email address): https://www.googleapis.com/auth/userinfo.email

0
source

All Articles