草庐IT

auth_token

全部标签

facebook - flutter_auth 要求 facebook 登录的访问 token 是什么?

我正在努力_auth.signInWithFacebook(accessToken:null);没有关于什么是accessToken的文档。我从哪里得到这个? 最佳答案 您需要从facebook本身获取accessToken。有一个包裹flutter_facebook_login与facebook接口(interface)以获取accessTokenvarfacebookLogin=newFacebookLogin();varresult=awaitfacebookLogin.logInWithReadPermissions(['e

facebook - flutter_auth 要求 facebook 登录的访问 token 是什么?

我正在努力_auth.signInWithFacebook(accessToken:null);没有关于什么是accessToken的文档。我从哪里得到这个? 最佳答案 您需要从facebook本身获取accessToken。有一个包裹flutter_facebook_login与facebook接口(interface)以获取accessTokenvarfacebookLogin=newFacebookLogin();varresult=awaitfacebookLogin.logInWithReadPermissions(['e

firebase - 在 Flutter App 中查找邮箱和用户名是否已经存在于 Firebase Auth 中

我在我的Flutter应用程序中使用电子邮件注册,并为此使用Firebase身份验证。如何在注册页面上显示输入的电子邮件和用户名是否已存在于数据库中? 最佳答案 firebase会将该信息作为错误消息返回:FirebaseAuth.instance.createUserWithEmailAndPassword(email:_email,password:_password).then((user){//dowhateveryouwanttodowithnewuserobject}).catchError((e){print(e.de

firebase - 在 Flutter App 中查找邮箱和用户名是否已经存在于 Firebase Auth 中

我在我的Flutter应用程序中使用电子邮件注册,并为此使用Firebase身份验证。如何在注册页面上显示输入的电子邮件和用户名是否已存在于数据库中? 最佳答案 firebase会将该信息作为错误消息返回:FirebaseAuth.instance.createUserWithEmailAndPassword(email:_email,password:_password).then((user){//dowhateveryouwanttodowithnewuserobject}).catchError((e){print(e.de

authentication - 即使有测试号码,Flutter firebase auth 电话认证也会失败

我正在使用firebase_auth包在我的flutter应用中启用电话身份验证。我按照firebase-flutter教程设置了firebase项目和一个支持android的应用程序。然后我按照firebase_auth示例代码创建了我的登录页面,但是我收到了示例中提供的示例编号/代码的以下错误PlatformException(error,CannotcreatePhoneAuthCredentialwithouteitherverificationProof,sessionInfo,ortempraryproof.,null)当我尝试verifyPhoneNumber时,下面的文

authentication - 即使有测试号码,Flutter firebase auth 电话认证也会失败

我正在使用firebase_auth包在我的flutter应用中启用电话身份验证。我按照firebase-flutter教程设置了firebase项目和一个支持android的应用程序。然后我按照firebase_auth示例代码创建了我的登录页面,但是我收到了示例中提供的示例编号/代码的以下错误PlatformException(error,CannotcreatePhoneAuthCredentialwithouteitherverificationProof,sessionInfo,ortempraryproof.,null)当我尝试verifyPhoneNumber时,下面的文

【获取微信小程序openLink】“errcode”:40001,“errmsg”:“invalid credential, access_token is invalid or not latest

【获取微信小程序openLink】{“errcode”:40001,“errmsg”:“invalidcredential,access_tokenisinvalidornotlatestrid:6369edea-3bf9b72c-0471fe53”}注意的问题点1.确保你accessToken是有效的2.业务场景:获取微信的openLink,获取参数t,并将参数t值拼接到h5,实现发送短信给用户,用户通过短信跳转H5,然后通过H5登录小程序。3.这点很重要!!!!!!!!不要去多次调用openLink代码参考:StringreturnOpenUrl=StrUtil.EMPTY;//获取ope

firebase - MissingPluginException(未在 channel plugins.flutter.io/firebase_auth 上找到方法 signInWithCredential 的实现)

我在使用firebase登录功能时遇到了这个问题,我不知道如何解决。请帮忙,谢谢。我的登录函数代码如下:FuturesignIn()async{finalformState=_formKey.currentState;if(formState.validate()){//TODOlogintofirebaseformState.save();try{FirebaseUseruser=awaitFirebaseAuth.instance.signInWithEmailAndPassword(email:_email,password:_password);Navigator.push(c

firebase - MissingPluginException(未在 channel plugins.flutter.io/firebase_auth 上找到方法 signInWithCredential 的实现)

我在使用firebase登录功能时遇到了这个问题,我不知道如何解决。请帮忙,谢谢。我的登录函数代码如下:FuturesignIn()async{finalformState=_formKey.currentState;if(formState.validate()){//TODOlogintofirebaseformState.save();try{FirebaseUseruser=awaitFirebaseAuth.instance.signInWithEmailAndPassword(email:_email,password:_password);Navigator.push(c

google-api - 错误 : Not found: 'dart:html' when using googleapis_auth dart team package with flutter

使用时googleapis_auth|DartPackagegoogleapis|DartPackage使用此代码通过Flutter访问GoogleApiimport'dart:convert';import'dart:io';import'package:googleapis_auth/auth.dart';import'package:googleapis_auth/auth_browser.dart';import'package:googleapis_auth/auth_io.dart';import'package:googleapis/androidpublisher/v3