Wednesday 17 May 2023

How to prevent any pop up Google OAuth2 (or run in background without prompt) when open new tab

Currently, I have a code as below to run google oauth2. It works perfectly but everytime i open a new tab a pop up will appear for login(however will auto close after few seconds). Is it possible to make it so that pop up will not appear all the time as it is distracting everytime i open a new tab.

tokenClient = google.accounts.oauth2.initTokenClient({
               client_id: CLIENT_ID,
               scope: SCOPES,
               prompt: '',
               callback: authorizeCallback
           });
tokenClient.requestAccessToken();


from How to prevent any pop up Google OAuth2 (or run in background without prompt) when open new tab

No comments:

Post a Comment