如何使用react-native-app-auth设置React Native身份验证

本文介绍了如何在React Native应用中使用react-native-app-auth库进行身份验证,特别提到了与Google集成的示例。文章涵盖了所需版本、测试过的OpenID和OAuth2提供程序、安装步骤、在iOS和Android中配置重定向URL方案以及在AppDelegate中定义openURL回调的方法。
摘要由CSDN通过智能技术生成

by Melih Yumak

通过Melih Yumak

如何使用react-native-app-auth设置React Native身份验证 (How to set up React Native authentication with react-native-app-auth)

版本号 (Versions)

Before we start, make sure you have the following versions installed:

在开始之前,请确保已安装以下版本:

“react”: “16.8.3”,“react-native”: “0.59.1”,“react-native-contacts”: “3.1.5”,

“React”:“ 16.8.3”,“React本机”:“ 0.59.1”,“React本机接触”:“ 3.1.5”,

Here’s the link to the Github repo if you want to check it out: https://github.com/FormidableLabs/react-native-app-auth

如果您想检出Github仓库,请点击以下链接https : //github.com/FormidableLabs/react-native-app-auth

React-native-app-auth is used to provide authentication in your react-native applications. In my case, I was trying to use it with Google, so here is an explanation how you can install and use it for the versions above.

React-native-app-auth用于在您的react-native应用程序中提供身份验证。 就我而言,我正尝试在Google上使用它,因此这里说明了如何在上述版本中安装和使用它。

In their documentation it’s also explained as a React Native bridge for AppAuth-iOS and AppAuth-Android SDKS for communicating with OAuth 2.0 and OpenID Connect providers.

在他们的文档中,它还被解释为用于AppAuth-iOSAppAuth-Android SDKS的React Native桥,用于与OAuth 2.0OpenID Connect提供程序进行通信。

经过测试的OpenID提供程序: (Tested OpenID providers:)

These providers are OpenID compliant, which means you can use autodiscovery:

这些提供程序符合OpenID,这意味着您可以使用自动发现

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值