We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 392bd48 + 370d6ae commit 7d407a7Copy full SHA for 7d407a7
docs/addons/jwt.md
@@ -232,7 +232,7 @@ class LoginController extends BaseController
232
You could send a request with the existing user's credentials by curl like this:
233
234
```console
235
-$ curl --location 'http://localhost:8080/auth/jwt' \
+curl --location 'http://localhost:8080/auth/jwt' \
236
--header 'Content-Type: application/json' \
237
--data-raw '{"email" : "admin@example.jp" , "password" : "passw0rd!"}'
238
```
@@ -257,7 +257,7 @@ would use the `$filters` setting on **app/Config/Filters.php**.
257
258
```php
259
public $filters = [
260
- 'jwt' => ['before' => ['api/*']],
+ 'jwt' => ['before' => ['api', 'api/*']],
261
];
262
263
0 commit comments