Skip to content

Commit 9f76232

Browse files
committed
describe login
1 parent 875d4db commit 9f76232

1 file changed

Lines changed: 32 additions & 0 deletions

File tree

README.md

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,38 @@ php artisan serve
2727

2828
Access [the GraphiQL UI](https://github.com/graphql/graphiql/blob/main/packages/graphiql/README.md) at `/graphiql`.
2929

30+
In order to log in through Sanctum, find out the email of the seeded user:
31+
32+
```graphql
33+
{
34+
users {
35+
data {
36+
email
37+
}
38+
}
39+
}
40+
```
41+
42+
Then, log in with the following mutation:
43+
44+
```graphql
45+
mutation {
46+
login(email: "<email>", password: "password") {
47+
id
48+
}
49+
}
50+
```
51+
52+
To validate you are in fact logged in, run the following query:
53+
54+
```graphql
55+
{
56+
me {
57+
id
58+
}
59+
}
60+
```
61+
3062
## Minimalism
3163

3264
In order to keep maintenance as simple as possible,

0 commit comments

Comments
 (0)