Just Auth Docs
  • JustAuth
  • Getting Started with JustAuth
  • Integration
    • Initialization
    • Using the useJustAuth Hook
    • Opening the Auth Modal
    • Checking Authentication Status
    • Exporting Private Key
    • Logging Out
    • Signing Messages
    • Signing Transactions
Powered by GitBook
On this page
  • Installation
  • Using npm:
  • Using yarn:
  • Setup
  • Configuration

Getting Started with JustAuth

Installation

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

Using npm:

npm install just-tron-auth

Using yarn:

yarn add just-tron-auth

Setup

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

  1. Import the required components:

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

    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:

  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!

PreviousJustAuthNextIntegration

Last updated 8 months ago

Visit JustAuth website at

https://just-auth-dashboard-production.up.railway.app/