在使用expo-auth-session包实现google登录时,我收到了一些我不知道的错误,自从我陷入这个问题以来,已经超过一天了,我找不到一个可靠的源来实现我的世博应用程序中的google登录。还有其他方法可以在react本机expo应用程序中实现它吗?
我所遇到的错误是:
WARN Linking requires a build-time setting `scheme` in the project's Expo config (app.config.js or app.json) for production apps, if it's left blank,
我正在尝试使用在我的世博会上实现谷歌登录,当我点击gmail登录时,我会被重定向到这个上,上面写着“在完成登录时出了点问题。请关闭这个屏幕回到应用程序”。
//Google auth code:
import * as Google from 'expo-auth-session/providers/google';
const [request, response, promptAsync] = Google.useAuthRequest({
expoClientId: config.google.expoClientId,
r
我的谷歌登录有问题,我现在正在使用世博应用程序,我不想退出世博,问题是当我点击按钮在我的应用程序中与谷歌登录时,它确实会带我在浏览器中为我访问登录页面,但一旦我将谷歌凭证放入Google.com页面,它就会登陆。
我检查了很多帖子,但我还是无法让它回到应用程序。
我要登录的应用程序代码是:
//import de Google en Expo
import * as Google from 'expo-google-app-auth';
import * as AppAuth from 'expo-app-auth';
export const googleL
我正在通过我的IdentityServer4实现使用Expo AuthSession登录我的应用程序。 当我尝试用我的谷歌账号登录我的IdentityServer时,我只在安卓系统中遇到了这个问题。 AuthSession在我的设备中打开浏览器,我可以登录,但之后,当我对询问我是否要允许我在React Native应用程序中收到的访问权限的通知回答是时,我就会退出。 我注意到,如果我在浏览器中的google帐户之前注册,问题就会消失,我就可以登录了。 我使用的代码是这样的: import * as AuthSession from "expo-auth-session";
i
我正在尝试添加一个与firebase集成的谷歌登录,这是我完整的登录代码…我正在使用expo-google-app-auth包。 import * as Google from "expo-google-app-auth"; isUserEqual = (googleUser, firebaseUser) => {
if (firebaseUser) {
var providerData = firebaseUser.providerData;
for (var i = 0; i < providerData.length; i++
我在Android中使用expo-google-app-auth有个问题。它在IOS上工作得很好。
成功登录安卓系统后,我又回到了LoginPage组件,而不是重定向回我的应用程序LoggedInPage组件。我想这是因为Android再次打开应用程序,我正在失去状态,所以我也失去了登录状态,我必须重新登录……
在IOS中,它只需让我完美地重定向到LoggedInPage组件即可。
import React, { useState } from "react";
import * as Google from "expo-google-app-auth";
i
我想在我的React本地应用程序上使用google功能来实现登录。我用的是expo-cli,我用的是世博authSession。
LoginScreen.js
import * as React from "react";
import * as WebBrowser from "expo-web-browser";
import * as Google from "expo-auth-session/providers/google";
import { Button, View, Text, TouchableOpacity } from &
我是个新手,尝试在博览RN应用程序中设置Firebase Google认证,
世博文档代码片段如下:
import * as React from 'react';
import * as WebBrowser from 'expo-web-browser';
import { ResponseType } from 'expo-auth-session';
import * as Google from 'expo-auth-session/providers/google';
import { initializeApp }
我在React Native Expo应用程序上收到以下错误: Setting a timer for a long period of time, i.e. multiple minutes, is a performance and correctness issue on Android as it keeps the timer module awake, and timers can only be called when the app is in the foreground. See https://github.com/facebook/react-native/issue
我希望我的代码允许用户登录并使用Google进行身份验证,一旦他们有了,就可以将它们添加到Firebase中的身份验证数据库中。
我尝试使用以下代码来完成此操作:
import React, { createContext, useContext } from 'react'
import * as Google from 'expo-auth-session/providers/google';
import * as WebBrowser from 'expo-web-browser';
import {
GoogleAuthProv
在学习博览的过程中,我试着构建一个小应用程序,我用谷歌作为工具,我遵循了世博会文档中的所有说明,但我还是不明白为什么在我点击谷歌登录并选择一个gmail帐户后,这个应用会重定向到google.com。
import React, { createContext,useContext } from "react";
import * as Google from 'expo-google-app-auth';
import { GoogleAuthProvider,onAuthStateChanged,signInWithCredential,signOut }
我正在为我们的应用程序使用Python Social Auth,我最近创建了一个两个范围的Google signin。我们的想法是允许用户登录google,然后升级范围,允许我们阅读他们的电子邮件并解析相关内容。我遵循了文档中概述的建议:并创建了一个新的后端:
from social.backends.google import GoogleOAuth2
class GoogleEmailOAuth2(GoogleOAuth2):
name = 'google-email'
然后将必要的部分添加到我们的settings.py中(以及所有必要的urls):
SOCIAL_