mirror of
https://github.com/mdn/webextensions-examples.git
synced 2026-04-16 06:18:35 +02:00
committed by
wbamberg
parent
8694314d5a
commit
ec731d4cee
@@ -4,10 +4,10 @@ const REDIRECT_URL = browser.identity.getRedirectURL();
|
||||
const CLIENT_ID = "YOUR-CLIENT-ID";
|
||||
const SCOPES = ["openid", "email", "profile"];
|
||||
const AUTH_URL =
|
||||
`https://accounts.google.com/o/oauth2/auth
|
||||
?client_id=${CLIENT_ID}
|
||||
&response_type=token
|
||||
&redirect_uri=${encodeURIComponent(REDIRECT_URL)}
|
||||
`https://accounts.google.com/o/oauth2/auth\
|
||||
?client_id=${CLIENT_ID}\
|
||||
&response_type=token\
|
||||
&redirect_uri=${encodeURIComponent(REDIRECT_URL)}\
|
||||
&scope=${encodeURIComponent(SCOPES.join(' '))}`;
|
||||
const VALIDATION_BASE_URL="https://www.googleapis.com/oauth2/v3/tokeninfo";
|
||||
|
||||
|
||||
Reference in New Issue
Block a user