1. install –save jsonwebtoken 2. import {sign} from ‘jsonwebtoken’ 3. login ()=> { const user = await User.findOne(email:email); const valid = await bcrypt.compare(password, user.password) const
Category: WebSecurity
JWT
1. install –save jsonwebtoken 2. import {sign} from ‘jsonwebtoken’ 3. login ()=> { const user = await User.findOne(email:email); const valid = await bcrypt.compare(password, user.password) const
OAuth2 – GoogleAPI
Using OAuth 2.0 to Access Google APIs https://developers.google.com/identity/protocols/oauth2 Client libraries The following client libraries integrate with popular frameworks, which makes implementing OAuth 2.0 simpler. More
How JWT works ?
why you should use JWT ? how JWT works ? and how you can use it yourself? JWT is just for authorization not authentication they’re
Build Node.js User Authentication – Password Login
We will be covering all of the security concerns that you will run into while building an authentication system. We will also cover how to