Skip to content

Instantly share code, notes, and snippets.

@allenday
Last active June 13, 2023 05:33
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save allenday/1530d065d5924c9d3631b245c96d63fb to your computer and use it in GitHub Desktop.
Save allenday/1530d065d5924c9d3631b245c96d63fb to your computer and use it in GitHub Desktop.
Chainlink + Google Analytics - code snippet for Google auth
const tokenResponse = await Functions.makeHttpRequest({
url: 'https://oauth2.googleapis.com/token',
method: 'post',
data: jwtRequestString
})
const accessToken = tokenResponse.data.access_token
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment