Skip to content

Commit

Permalink
fixed small typo (#1541)
Browse files Browse the repository at this point in the history
  • Loading branch information
isemona authored Oct 28, 2024
1 parent 2a3d152 commit a9006de
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion _source/_posts/2022-02-08-cookies-vs-tokens.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ Tokens—or JWTs in this context—are stateless in nature, meaning the server d

* **Multiple storage options**: Tokens can be stored in a number of ways in browsers or front-end applications.

If you use a browser's local storage, tokens can't be accessed by a subdomain. However, they can be accessed and manipulated by any JavaScript code on the webpage, as well as by browser plugins. This isn't a recommended method: first, itposes a security risk, plus you must manage the storage.
If you use a browser's local storage, tokens can't be accessed by a subdomain. However, they can be accessed and manipulated by any JavaScript code on the webpage, as well as by browser plugins. This isn't a recommended method: first, it poses a security risk, plus you must manage the storage.

Session storage is another way to store tokens. The drawback is that the token is destroyed when the browser is closed.

Expand Down

0 comments on commit a9006de

Please sign in to comment.