displayName}"); return true; }}// Google登录Future<UserCredential> loginGoogle() async { final GoogleSignInAccount
警告:请勿在后端服务器上接受普通用户 ID(例如您可以使用 GoogleSignInAccount.getId() method 获取的 ID)。
> signInWithGoogle() async { try { // 触发 Google 登录流程 final GoogleSignInAccount? > signInWithGoogle() async { try { // 触发 Google 登录流程 final GoogleSignInAccount?
clientId: OAuthConfig.googleClientId[platform], scopes: ['email', 'profile'], ); GoogleSignInAccount