FullAuth

Installation

Welcome to the React Native Installation Guide for FullAuth. Follow these steps to integrate FullAuth seamlessly into your React Native project for a secure and user-friendly authentication experience.

Create new project: (we will use expo for this)

npx create-expo-app myApp

Install Packages:

npm i @fullauth/core @fullauth/react-native

or

yarn add @fullauth/core @fullauth/react-native

Add Environment Variables:

EXPO_PUBLIC_FULLAUTH_URL= your-backend-url

Session Provider:

In order to access the session object on the client side, we need to wrap our app with SessionProivder

App.tsx

import { SessionProvider } from '@fullauth/react-native';

export default function App() {
  return (
      <SessionProvider  baseUrl= "your-backend-url",>
          // your app code
      </SessionProvider>
  );
}

then in your screen.tsx file you can call useSession() hook to access the session object.

You can check our examples for more details.

Usefull Links