Created
August 7, 2017 15:38
-
-
Save slugbyte/8e4c0d7a543ec7aeb40006fbcf1d9bb6 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
let oauthURL = 'https://accounts.google.com/o/oauth2/v2/auth' | |
let oauthQuery = encode({ | |
client_id: __GOOGLE_CLIENT_ID__, | |
redirect_uri: `${__API_URL__}/oauth/google/code`, | |
response_type: 'code', | |
scope: 'openid email profile', | |
prompt: __DEBUG__ ? 'consent' : undefined, | |
}) | |
let loginWithGoogleURL = `${oauthURL}?${oauthQuery}` |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment