Skip to content

Commit fe8fafb

Browse files
committed
Merge pull request jsonwebtoken#123 from diegopoza/updated-intro
Fixed typo
2 parents 56e5fbb + c5d611e commit fe8fafb

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

introduction/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ <h3 id="putting-all-together">Putting all together</h3>
7272
<img src="https://cdn.auth0.com/content/jwt/encoded-jwt3.png" alt="Encoded JWT"></p>
7373
<p>If you want to play with JWT and put these concepts to practice, you can use <a href="http://jwt.io">jwt.io Debugger</a> to decode, verify and generate JWTs.</p>
7474
<p><img src="https://cdn.auth0.com/blog/legacy-app-auth/legacy-app-auth-5.png" alt="JWT.IO Debugger"></p>
75-
<h2 id="how-json-web-tokens-work-">How JSON Web Tokens work?</h2>
75+
<h2 id="how-do-json-web-tokens-work-">How do JSON Web Tokens work?</h2>
7676
<p>In authentication, when the user successfully logs in using his 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.</p>
7777
<p>Whenever the user wants to access a protected route or resource, it should send the JWT, typically in the <strong>Authorization</strong> header using the <strong>Bearer</strong> schema. Therefore the content of the header should look like the following.</p>
7878
<pre><code>Authorization: Bearer &lt;token&gt;

views/md/introduction.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ If you want to play with JWT and put these concepts to practice, you can use [jw
9292

9393
![JWT.IO Debugger](https://cdn.auth0.com/blog/legacy-app-auth/legacy-app-auth-5.png)
9494

95-
## How JSON Web Tokens work?
95+
## How do JSON Web Tokens work?
9696
In authentication, when the user successfully logs in using his 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.
9797

9898
Whenever the user wants to access a protected route or resource, it should send the JWT, typically in the **Authorization** header using the **Bearer** schema. Therefore the content of the header should look like the following.

0 commit comments

Comments
 (0)