Warning: This data is provided under the Google User Data Policy. Please review and comply with the policy. Failure to do so might result in project or account suspension.

Load the Google 3P Authorization JavaScript Library

Be sure to load the Google 3P Authorization JavaScript library on any page a user might load OAuth 2.0 codes or tokens. Use the following code snippet:

<script src="https://accounts.google.com/gsi/client" onload="console.log('TODO: add onload function')">  

You can optimize your page's loading speed if you load the script with the async and defer boolean attributes.