警告:这些数据是根据 Google 用户数据政策提供的。请查看并遵守该政策。否则,可能会导致项目或帐号被暂停。

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')">  
</script>

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