Skip to content

Used NodeJS, Express, JWT token, Mongoose to build this server environment

Notifications You must be signed in to change notification settings

QilongMa/Server-Authentication

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Server-Client-Setup-Authentication

'server-authentication' is build for server side authentication

alt text

When signup, mail if not in use, we will create a jwt token.

When signin, passport is used to create local strategy, and find a match with credentials provided by user in DB. After user is verified, a jwt is assgined to him.

When user come back to the app, to make an auth'd request with the token, we verify the correctness of the token. It's made by jwt, a plugin from passport library. And then user will have access to restricted resource.

About

Used NodeJS, Express, JWT token, Mongoose to build this server environment

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published