oauth2-angularjs-chrome-extension-demo icon indicating copy to clipboard operation
oauth2-angularjs-chrome-extension-demo copied to clipboard

Getting a new token with launchWebAuthFlow

Open ivorpad opened this issue 6 years ago • 0 comments

Hey Michael,

The important distinctions are that launchWebAuthFlow() doesn't require the browser to be logged into Google the way the chrome.identity.getAuthToken() — https://stackoverflow.com/a/38407040/4932334

How do you get a new token after the previous expires? A normal flow would be to get a new token 45 minutes before the previous expires to avoid getting the Consent Screen over and over again.

Thanks!

ivorpad avatar Jul 15 '18 14:07 ivorpad