React Native + Redux basic authentication

后端 未结 3 1409
一向
一向 2021-01-30 07:30

I\'m looking for a way to create a basic authentication for my react-native app. I couldn\'t find any good example for react-native app.

  • To login, the app sends th
3条回答
  •  栀梦
    栀梦 (楼主)
    2021-01-30 07:55

    I haven't seen too much by way of examples in this area, and think it's definitely something that needs more coverage. I've not yet implemented auth myself, else I'd point you to some code examples. But I can point you to a couple links I've collected that may help you in the right direction...

    • Oauth 2 with React Native
    • React Native: Auth0 Login + Firebase

    Regardless how you perform your auth, you'll need to securely store your access, refresh, and secret tokens. On iOS I believe you'd do that using keychain and for Android it looks like KeyStore is the way. You may find oblador/react-native-keychain helpful, though it doesn't yet support android it looks like it may support android soon.

提交回复
热议问题