Skip to content

Commit

Permalink
fix: Revoke access token on logout [PT-186862486]
Browse files Browse the repository at this point in the history
  • Loading branch information
dougmartin committed Jan 17, 2024
1 parent 8e4cf61 commit 3b8892f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/code/providers/google-drive-provider.ts
Original file line number Diff line number Diff line change
Expand Up @@ -591,10 +591,11 @@ class GoogleDriveProvider extends ProviderInterface {
}

logout() {
google.accounts.oauth2.revoke(this.authToken);
gapi.client.setToken('')
this.user = null
this.authToken = null
this.promptForConsent = true
gapi.client.setToken(null)
this.onAuthorizationChangeCallback?.(false)
}

Expand Down

0 comments on commit 3b8892f

Please sign in to comment.