Skip to content

Commit fc836e2

Browse files
author
David Yell
committed
Documented the auth
1 parent e901035 commit fc836e2

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

README.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,14 @@ Save them into the `/app/database` folder and run the seeder `artisan db:seed St
4646

4747
The project includes [GraphIQL](https://github.com/mll-lab/laravel-graphiql). You can make use of the client by installing Composer `dev` dependencies and then visiting http://localhost/graphiql.
4848

49+
### Authentication
50+
51+
The `/graphql` endpoint is secured with a Laravel Sanctum token auth. You will need to login and generate a token, and send this token with your requests as the Authorization header.
52+
53+
```http request
54+
Authorization: Bearer <your-token>
55+
```
56+
4957
### Example queries
5058

5159
Get all the cards, but only a few fields, paginated by 20 per page on page 4, and include the set the card belongs to.

0 commit comments

Comments
 (0)