{"metadata":{"image":[],"title":"","description":""},"api":{"url":"","auth":"required","results":{"codes":[]},"settings":"","params":[]},"next":{"description":"","pages":[]},"title":"JWT Authenticated routes","type":"basic","slug":"jwt-authenticated-routes","excerpt":"","body":"JWT is configured as an Auth provider for dingo/API in `config/api.php`.\n\nThis allows you to use the `api.auth` middleware for authenticated routes.\nIf the user is not logged in (or the Authorization header was missing), they won't have access to this endpoint.\n\nFeel free to create your own middleware if you'd like to add more complexity.","updates":[],"order":3,"isReference":false,"hidden":false,"sync_unique":"","link_url":"","link_external":false,"_id":"57ffd85f755a2e1700c2bb28","category":{"sync":{"isSync":false,"url":""},"pages":[],"title":"REST API","slug":"rest-api","order":4,"from_sync":false,"reference":false,"_id":"57ffd85f755a2e1700c2bb0a","version":"57ffd85f755a2e1700c2bb05","createdAt":"2015-12-18T23:14:14.145Z","__v":0,"project":"567083021dabd80d00b122ae"},"parentDoc":null,"project":"567083021dabd80d00b122ae","user":"567082433a32d20d00c45cab","createdAt":"2015-12-18T23:24:35.634Z","__v":0,"githubsync":"","version":{"version":"3.4","version_clean":"3.4.0","codename":"","is_stable":true,"is_beta":false,"is_hidden":false,"is_deprecated":false,"categories":["57ffd85f755a2e1700c2bb06","57ffd85f755a2e1700c2bb07","57ffd85f755a2e1700c2bb08","57ffd85f755a2e1700c2bb09","57ffd85f755a2e1700c2bb0a","57ffd85f755a2e1700c2bb0b","57ffd85f755a2e1700c2bb0c","57ffd85f755a2e1700c2bb0d"],"_id":"57ffd85f755a2e1700c2bb05","project":"567083021dabd80d00b122ae","releaseDate":"2016-10-13T18:54:23.018Z","__v":1,"createdAt":"2016-10-13T18:54:23.018Z"}}

JWT Authenticated routes


JWT is configured as an Auth provider for dingo/API in `config/api.php`. This allows you to use the `api.auth` middleware for authenticated routes. If the user is not logged in (or the Authorization header was missing), they won't have access to this endpoint. Feel free to create your own middleware if you'd like to add more complexity.