Skip to content

Latest commit

 

History

History
45 lines (36 loc) · 2.39 KB

File metadata and controls

45 lines (36 loc) · 2.39 KB

User Authentication App

The User Authentication App is a React Native application that implements a basic authentication flow, enabling users to sign up, log in, and log out using their email and password. The app integrates seamlessly with Firebase Authentication to handle user authentication processes and provides a secure and user-friendly experience.

Features

  • Sign Up: New users can register using their email and password, with validation to ensure secure account creation.
  • Log In: Registered users can log in with their credentials to access the app's features.
  • Token Management:
    • Upon successful authentication, the app retrieves a token from Firebase.
    • The token is stored securely on the device using AsyncStorage, ensuring users remain logged in even after restarting the app.
  • Log Out: Users can log out, which clears the stored token, effectively ending the session.
  • Session Persistence: The app checks for a stored token on launch to determine if the user should be logged in automatically.

Technologies Used

  • React Native: For building the mobile application.
  • Firebase Authentication: For managing user authentication processes.
  • AsyncStorage: To securely store the authentication token on the device.
  • Expo Splash Screen: For a smooth loading experience during app initialization.

How to Run the App

  1. Clone the repository:
    git clone https://github.com/sothulthorn/react-native-user-authentication.git
  2. Setup the environment (.env.local):
    EXPO_PUBLIC_API_KEY={YOUR_FIREBASE_API_KEY}
  3. Install dependencies:
    npm install
  4. Install dependencies:
    npm start

Project View

Sign In
Sign Up
Welcome