Created
November 27, 2016 23:53
-
-
Save bkonkle/7e858abbfffbfe929396ce0ab39c52fd to your computer and use it in GitHub Desktop.
Electron Google Authentication (Part 5)
This file contains 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
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