Skip to content

Instantly share code, notes, and snippets.

@bkonkle
Created November 27, 2016 23:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bkonkle/7e858abbfffbfe929396ce0ab39c52fd to your computer and use it in GitHub Desktop.
Save bkonkle/7e858abbfffbfe929396ce0ab39c52fd to your computer and use it in GitHub Desktop.
Electron Google Authentication (Part 5)
export async function fetchGoogleProfile (accessToken) {
const response = await axios.get(GOOGLE_PROFILE_URL, {
headers: {
'Content-Type': 'application/json',
'Authorization': `Bearer ${accessToken}`,
},
})
return response.data
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment