Buy nowGet update
  • getting started
    • Introduction
    • Quick start
    • Mock server
    • Deployment
    • Package & license
    • Setup
    • Figma
  • theme UI
    • Colors
    • Typography
    • IconsNEW
    • Shadows
    • Css vars
    • Logo
    • Layout
    • Navigation
    • Settings
  • Global
    • Styles
    • Config
    • Components overrides
  • development
    • Routing
    • Subfolder
    • Authentication
    • Environment variables
    • Api calls
    • Multi language
    • Structure
    • Clean project
    • Dependencies
    • Tailwind
    • Migrate to CRA
    • Credit assets
  • support
    • 🔵 Update
    • 🔴 Faqs & support
    • 🟣 Changelogv7.4.0
© All rights reserved.ContactHome

JWT


Step 1:

Update .env

VITE_HOST_API=https://api-dev-minimal-v5.vercel.app or your-website-base-URL
.env

Step 2:

Update src/App or src/app/layout

import { AuthProvider } from 'src/auth/context/jwt';
 
<AuthProvider>
  {children}
</AuthProvider>;
src/App or src/app/layout

Step 3:

Update src/auth/hooks/use-auth-context

import { AuthContext } from '../context/jwt/auth-context';
src/auth/hooks/use-auth-context