Initialization

Overview

The JustAuthProvider component is used to initialize JustAuth in your React application. It manages authentication state and provides access to authentication functions throughout your app.

How to Use

  1. Import the JustAuthProvider:

    import { JustAuthProvider } from 'just-tron-auth';
  2. Wrap your main application component:

    function App() {
       return (
          <JustAuthProvider appId="YOUR_APP_ID">
             {/* Your app components */}
          </JustAuthProvider>
       );
    }

Parameters

  • appId (string): The unique identifier for your application, obtained from the JustAuth dashboard.

Example

<JustAuthProvider appId="YOUR_APP_ID">
   {/* Your app components */}
</JustAuthProvider>

Last updated