You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Sanctum branch: Query.me returns null after login #38
I just tried it, works fine for me with localhost. I think it is not working for you due to your URL not being listed in the config/sanctum.php setting stateful.
Activity
spawnia commentedon Jan 23, 2025
I just updated #9. Can you describe what steps you performed? I can not quite remember myself what was necessary to make it work.
lkmadushan commentedon Jan 23, 2025
@spawnia I have setup the sanctum branch, ran the db:seed and I was able to successfully login through the graphiql client.
But when accessing the Query.me, it always returns null. auth()->user() is always null.
lkmadushan commentedon Jan 23, 2025
I can see request headers contains session and xsrf cookies as well.
spawnia commentedon Jan 23, 2025
I just tried it, works fine for me with
localhost. I think it is not working for you due to your URL not being listed in theconfig/sanctum.phpsettingstateful.lkmadushan commentedon Jan 23, 2025
@spawnia that solved the problem. thank you very much