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.
Import the required components:
import { JustAuthProvider } from 'just-tron-auth';
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
:
Sign up for a JustAuth account:
Visit JustAuth website at https://just-auth-dashboard-production.up.railway.app/
Create a new application:
After signing up, navigate to the dashboard and create a new application.
Copy the
appId
:After creating the application, copy the
appId
from the dashboard.
Use the
appId
in your application:Replace the
appId
in theJustAuthProvider
setup with the one from the dashboard.
With the setup complete, you’re ready to start using JustAuth in your Tron dApp!
Last updated