Skip to content

Commit c629b8f

Browse files
committed
Fixes #262: add a notice pointing to a document describing the nuances of
cookie/local storage options for JWT storage.
1 parent 8325bfc commit c629b8f

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

views/md/introduction.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,8 @@ If you want to play with JWT and put these concepts into practice, you can use [
101101
## How do JSON Web Tokens work?
102102
In authentication, when the user successfully logs in using their credentials, a JSON Web Token will be returned and must be saved locally (typically in local storage, but cookies can be also used), instead of the traditional approach of creating a session in the server and returning a cookie.
103103

104+
> There are security considerations that must be taken into account with regards to the way tokens are stored. These are enumerated in [Where to Store Tokens](https://auth0.com/docs/security/store-tokens).
105+
104106
Whenever the user wants to access a protected route or resource, the user agent should send the JWT, typically in the **Authorization** header using the **Bearer** schema. The content of the header should look like the following:
105107

106108
```

0 commit comments

Comments
 (0)