You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+9-9Lines changed: 9 additions & 9 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -89,14 +89,14 @@ Endpoint | HTTP Verb
89
89
*/wp-json/jwt-auth/v1/token* | POST
90
90
*/wp-json/jwt-auth/v1/token/validate* | POST
91
91
92
-
##Usage
92
+
##Usage
93
93
### /wp-json/jwt-auth/v1/token
94
94
95
95
This is the entry point for the JWT Authentication.
96
96
97
97
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.
98
98
99
-
####Sample request using AngularJS
99
+
####Sample request using AngularJS
100
100
101
101
```javascript
102
102
@@ -188,7 +188,7 @@ Host: server.example.com
188
188
Authorization: Bearer mF_s9.B5f-4.1JqM
189
189
```
190
190
191
-
###Errors
191
+
###Errors
192
192
193
193
If the token is invalid an error will be returned. Here are some samples of errors:
194
194
@@ -249,11 +249,11 @@ Valid Token Response:
249
249
}
250
250
```
251
251
252
-
##Available Hooks
252
+
##Available Hooks
253
253
254
254
The **wp-api-jwt-auth** is dev friendly and has five filters available to override the default settings.
255
255
256
-
####jwt_auth_cors_allow_headers
256
+
####jwt_auth_cors_allow_headers
257
257
258
258
The **jwt_auth_cors_allow_headers** allows you to modify the available headers when the CORs support is enabled.
0 commit comments