filmov
tv
Jwt with Node.js Example part 1

Показать описание
#electronjs #build #desktopapp
*************Udemy Course*************
Complete Electron js Application Development Course for WIN,MAC,LINUX
Udemy A-Z Node js Course ( Game Development, Desktop App, API, Automation Testing, and lot more)
****************************************
JSON Web Token is a proposed Internet standard for creating data with optional signature and/or optional encryption whose payload holds JSON that asserts some number of claims. The tokens are signed either using a private secret or a public/private key.
For example, a server could generate a token that has the claim "logged in as admin" and provide that to a client. The client could then use that token to prove that it is logged in as admin. The tokens can be signed by one party's private key (usually the server's) so that party can subsequently verify the token is legitimate. If the other party, by some suitable and trustworthy means, is in possession of the corresponding public key, they too are able to verify the token's legitimacy. The tokens are designed to be compact,
e JWT claims can typically be used to pass the identity of authenticated users between an identity provider and a service provider, or any other type of claims as required by business processes.
Node js also allows us to generate jwt token at server side which we can send to the client after login and the client can use that token to authenticate other apis.
*************Udemy Course*************
Complete Electron js Application Development Course for WIN,MAC,LINUX
Udemy A-Z Node js Course ( Game Development, Desktop App, API, Automation Testing, and lot more)
****************************************
JSON Web Token is a proposed Internet standard for creating data with optional signature and/or optional encryption whose payload holds JSON that asserts some number of claims. The tokens are signed either using a private secret or a public/private key.
For example, a server could generate a token that has the claim "logged in as admin" and provide that to a client. The client could then use that token to prove that it is logged in as admin. The tokens can be signed by one party's private key (usually the server's) so that party can subsequently verify the token is legitimate. If the other party, by some suitable and trustworthy means, is in possession of the corresponding public key, they too are able to verify the token's legitimacy. The tokens are designed to be compact,
e JWT claims can typically be used to pass the identity of authenticated users between an identity provider and a service provider, or any other type of claims as required by business processes.
Node js also allows us to generate jwt token at server side which we can send to the client after login and the client can use that token to authenticate other apis.