Skip to content

Commit c2cd963

Browse files
authored
Merge pull request Tmeister#74 from blackpr/patch-1
* Fix format on README.md
2 parents 987a0c4 + f4566ad commit c2cd963

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

README.md

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -89,14 +89,14 @@ Endpoint | HTTP Verb
8989
*/wp-json/jwt-auth/v1/token* | POST
9090
*/wp-json/jwt-auth/v1/token/validate* | POST
9191

92-
##Usage
92+
## Usage
9393
### /wp-json/jwt-auth/v1/token
9494

9595
This is the entry point for the JWT Authentication.
9696

9797
Validates the user credentials, *username* and *password*, and returns a token to use in a future request to the API if the authentication is correct or error if the authentication fails.
9898

99-
####Sample request using AngularJS
99+
#### Sample request using AngularJS
100100

101101
```javascript
102102

@@ -188,7 +188,7 @@ Host: server.example.com
188188
Authorization: Bearer mF_s9.B5f-4.1JqM
189189
```
190190

191-
###Errors
191+
### Errors
192192

193193
If the token is invalid an error will be returned. Here are some samples of errors:
194194

@@ -249,11 +249,11 @@ Valid Token Response:
249249
}
250250
```
251251

252-
##Available Hooks
252+
## Available Hooks
253253

254254
The **wp-api-jwt-auth** is dev friendly and has five filters available to override the default settings.
255255

256-
####jwt_auth_cors_allow_headers
256+
#### jwt_auth_cors_allow_headers
257257

258258
The **jwt_auth_cors_allow_headers** allows you to modify the available headers when the CORs support is enabled.
259259

@@ -263,7 +263,7 @@ Default Value:
263263
'Access-Control-Allow-Headers, Content-Type, Authorization'
264264
```
265265

266-
###jwt_auth_not_before
266+
### jwt_auth_not_before
267267

268268
The **jwt_auth_not_before** allows you to change the [**nbf**](https://tools.ietf.org/html/rfc7519#section-4.1.5) value before the token is created.
269269

@@ -273,7 +273,7 @@ Default Value:
273273
Creation time - time()
274274
```
275275

276-
###jwt_auth_expire
276+
### jwt_auth_expire
277277

278278
The **jwt_auth_expire** allows you to change the value [**exp**](https://tools.ietf.org/html/rfc7519#section-4.1.4) before the token is created.
279279

@@ -283,7 +283,7 @@ Default Value:
283283
time() + (DAY_IN_SECONDS * 7)
284284
```
285285

286-
###jwt_auth_token_before_sign
286+
### jwt_auth_token_before_sign
287287

288288
The **jwt_auth_token_before_sign** allows you to modify all the token data before to be encoded and signed.
289289

@@ -304,7 +304,7 @@ $token = array(
304304
);
305305
```
306306

307-
###jwt_auth_token_before_dispatch
307+
### jwt_auth_token_before_dispatch
308308
The **jwt_auth_token_before_dispatch** allows you to modify all the response array before to dispatch it to the client.
309309

310310
Default value:

0 commit comments

Comments
 (0)