📌  相关文章
📜  通过 google api 登录 - Go 编程语言代码示例

📅  最后修改于: 2022-03-11 14:45:01.983000             🧑  作者: Mango

代码示例2
function onSignIn(googleUser) {  var profile = googleUser.getBasicProfile();  console.log('ID: ' + profile.getId()); // Do not send to your backend! Use an ID token instead.  console.log('Name: ' + profile.getName());  console.log('Image URL: ' + profile.getImageUrl());  console.log('Email: ' + profile.getEmail()); // This is null if the 'email' scope is not present.}