- 1)Schema design Product file
- Hide/# password bcryptjs
- 2)services || Controller || router
- 3)SignUp
- Just post
- 4)Login
- Check if Email and password are given
- Load user with email
- if not user send res
- compare password
- if password not correct send res
- check if user is active
- if not active send res
- 5)Reload problem
- generate token
- send user and toke
- 6)Authorization
- Create a function
- Router a Authorization("admin")
mozahidahmed/Authenticaton_Authoraization_Custom
Folders and files
| Name | Name | Last commit date | ||
|---|---|---|---|---|