Skip to content

Replace GoogleAuthUtil.invalidateToken with GoogleAuthUtil.clearToken #950

@erickoledadevrel

Description

@erickoledadevrel

It's used here:

https://github.com/google/google-api-java-client/blob/57fe35766cbba0a0d5a9a296be81468d730a29f8/google-api-client-android/src/main/java/com/google/api/client/googleapis/extensions/android/gms/auth/GoogleAccountCredential.java#L294

The method is deprecated due to requiring MANAGE_ACCOUNTS and USE_CREDENTIALS permissions:

https://developers.google.com/android/reference/com/google/android/gms/auth/GoogleAuthUtil#invalidateToken(android.content.Context, java.lang.String)

The replacement is GoogleAuthUtil.clearToken. This should allow Android developers to use the library without requesting those extra permissions.

Metadata

Metadata

Assignees

Labels

🚨This issue needs some love.priority: p2Moderately-important priority. Fix may not be included in next release.type: bugError or flaw in code with unintended results or allowing sub-optimal usage patterns.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions