Skip to content

Hailekeh22/MERN-JWT-Authentication

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 

Repository files navigation

    Login and Signup with protected route using JsonWebToken(JWT)

(install the necessary dependencies) run npm i on the client and server directorries

create .env file inside the client directory ("client/.env") env values

    VITE_loginbackend = "http://your_server_link:port/login"
    VITE_signupbackend = "http://your_server_link:port/signup"
    VITE_indexroute = "http://your_server_link:port/page"
    VITE_homeroute = "http://your_server_link:port/home"
    VITE_verifyroute = "http://your_server_link:port/validate"
    VITE_Logoutroute = "http://your_server_link:port/home/logout"

create .env file inside your server directory ("server/.env") env values

    JWT_SECRETE = "add your JWT secret"

About

No description or website provided.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published