Closed LiamKarlMitchell closed 2 years ago
In config/lighthouse.php I had to set this for @auth to work.
'guard' => 'sanctum',
Didn't see it in the readme.
"Get the logged in user." me: User @auth
or
me: @auth('sanctum')
sanctum.graphql
extend type Query { me: User @auth }
When using Sanctum it's pretty much implied that you set it as the guard. The documentation of this package only deals with the specifics of using it with Lighthouse.
In config/lighthouse.php I had to set this for @auth to work.
Didn't see it in the readme.
or
sanctum.graphql