> For the complete documentation index, see [llms.txt](https://just-auth.gitbook.io/just-auth-docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://just-auth.gitbook.io/just-auth-docs/2_getting_started.md).

# Getting Started with JustAuth

## Installation

To install JustAuth in your project, use either npm or yarn:

### Using npm:

```bash
npm install just-tron-auth
```

### Using yarn:

```bash
yarn add just-tron-auth
```

## Setup

After installation, follow these steps to set up JustAuth in your React application.

1. **Import the required components:**

   ```typescript
   import { JustAuthProvider } from 'just-tron-auth';
   ```
2. **Wrap your main application component with the `JustAuthProvider`:**

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

   Replace `"YOUR_APP_ID"` with the actual app ID provided by JustAuth.

## Configuration

To configure JustAuth, follow these steps to obtain an `appId`:

1. **Sign up for a JustAuth account**:
   * Visit JustAuth website at <https://just-auth-dashboard-production.up.railway.app/>
2. **Create a new application**:
   * After signing up, navigate to the dashboard and create a new application.
3. **Copy the `appId`**:
   * After creating the application, copy the `appId` from the dashboard.
4. **Use the `appId` in your application**:
   * Replace the `appId` in the `JustAuthProvider` setup with the one from the dashboard.

With the setup complete, you’re ready to start using JustAuth in your Tron dApp!
