使用身份验证 SDK 和库

Expo 和 React Native 生态系统中可用的身份验证集成概述。


移动应用中的身份验证是指你如何识别用户身份、管理注册或登录流程,以及在应用启动和多设备间维护其已认证的会话。身份验证 SDK 和库可以帮助你添加这些流程,因此你无需自己构建自定义的身份验证后端。下面的指南突出了适用于你的 Expo 和 React Native 项目的流行 SDK 和提供商。

🌐 Authentication in mobile apps refers to how you identify who a user is, manage sign-up or sign-in flows, and maintain their authenticated session across app launches and across multiple devices. Authentication SDKs and libraries help you add these flows, so you do not need to build your own custom auth backend. The guides below highlight popular SDKs and providers for your Expo and React Native projects.

警告 一些提供商需要自定义本地代码,并不支持在 Expo Go 中使用。必要时请使用 开发构建

使用文员

将 Clerk 身份验证和用户管理添加到你的 Expo 和 React Native 项目中。

使用 Facebook 身份验证

配置 react-native-fbsdk-next 以在你的 Expo 项目中添加 Facebook 身份验证。

使用 Google 身份验证

配置 @react-native-google-signin/google-signin 以在你的 Expo 项目中添加 Google 身份验证。