Open aninda052 opened 1 year ago
This pr will close #35
server
login
registration
bcrypt
JWT
authentication
jsonwebtoken
setCurrentUser
current user
request
loginRequired
protected route
/api/videos/update
/api/videos/delete
/api/videos/upload
token
httpOnly=true
client
context
state
local storage
This pr will close #35
server
login
andregistration
api addedbcrypt
packageJWT
basedauthentication
system usingjsonwebtoken
packagesetCurrentUser
middleware is used for bindingcurrent user
withrequest
loginRequired
middleware will used forprotected route
/api/videos/update
,/api/videos/delete
and/api/videos/upload
as protected routetoken
in cookies withhttpOnly=true
client
context
&state
login
page and navigate them to their desire page after successful login.local storage