Skip to content

Commit

Permalink
Fixed formatting of JWT output
Browse files Browse the repository at this point in the history
  • Loading branch information
stasel committed Feb 8, 2024
1 parent 18d7280 commit abfb0f2
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion node-js/jwt-tokens.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,9 @@ console.log(token);
```

The output of the code above will be
> eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VybmFtZSI6InVzZXIxMjMiLCJpc0FkbWluIjpmYWxzZSwiaWF0IjoxNzA3NDI4NDI3fQ.Fc1h3X2xqFspbBS3UdXTNEpd8dsL10Pt_lzAgnFZYAY
```
eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VybmFtZSI6InVzZXIxMjMiLCJpc0FkbWluIjpmYWxzZSwiaWF0IjoxNzA3NDI4NDI3fQ.Fc1h3X2xqFspbBS3UdXTNEpd8dsL10Pt_lzAgnFZYAY
```

This token can be now used to access protected endpoints. It is a bit longer than your standard opaque token, but it is more powerful and containing more information.

Expand Down

0 comments on commit abfb0f2

Please sign in to comment.