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-iOS和AppAuth-Android SDKS的React Native桥,用于与OAuth 2.0和OpenID Connect提供程序进行通信。
经过测试的OpenID提供程序: (Tested OpenID providers:)
These providers are OpenID compliant, which means you can use autodiscovery:
这些提供程序符合OpenID,这意味着您可以使用自动发现 :