Skip to content

Instantly share code, notes, and snippets.

@slugbyte
Created August 7, 2017 15:38
Show Gist options
  • Save slugbyte/8e4c0d7a543ec7aeb40006fbcf1d9bb6 to your computer and use it in GitHub Desktop.
Save slugbyte/8e4c0d7a543ec7aeb40006fbcf1d9bb6 to your computer and use it in GitHub Desktop.
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