You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
> 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.
6
+
7
+
* How is it used?
8
+
9
+
> Generally when an user logs in a webpage, the client requests a JWT token based on the user credentials.
10
+
11
+
> The Server generates the token and sends it back to the client.
12
+
13
+
> The Client then uses this token to request any resource from the API.
14
+
15
+
> Without the token the Server marks all requests to protected routes as unauthorized.
16
+
17
+
* How can the client send the token for each request?
18
+
19
+
> The Recommended practice is to use the `Authorization` header while requesting the resource.
0 commit comments