https://github.com/yanliu1111/reactnative-firebaserestapi-authentication
https://github.com/yanliu1111/reactnative-firebaserestapi-authentication
authentication expo firebase react-native react-navigation rest-api
Last synced: 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/yanliu1111/reactnative-firebaserestapi-authentication
- Owner: yanliu1111
- Created: 2023-01-02T02:32:13.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2023-01-09T04:36:27.000Z (over 3 years ago)
- Last Synced: 2025-07-30T07:54:55.244Z (11 months ago)
- Topics: authentication, expo, firebase, react-native, react-navigation, rest-api
- Language: JavaScript
- Homepage:
- Size: 1.79 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# React Native Expo – Authentication using Firebase Auth REST API
## Main Tech:
- React Native w Expo
- Firebase Authentication, Realtime database
- Components, AuthContext, Utility
- yarn
## Main Dependencies:
- @react-native-async-storage/async-storage
- @react-navigation/native"
- expo-splash-screen
- axios
🎃 I built a basic authentication flow with user signup and login, then login a user can fetch data from Realtime database from firebase under setting protected resources.
⚽ Setting the auth token for user authentication on the device and getting access to protected resources thereafter.
🥨 Using AuthContext stored the token on the device, so that it is available the next time the app restarts.
🍎 Using the token to attach outgoing HTTP requests to protected resources to fetch data from such resources with help of that token.
👀 I also has the other Authentication practice React Native Expo using firebase SDK, which can make token expire and refresh simpler.
**Check the Demo:**
