Replies: 1 comment
-
Sorry I could not spot any obvious error.
This might be an indicator something your production system is still differnent. Can you provide a public repo with a small reproducible code of laravel plus this library? I might be able to take a look at that. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
I have a problem with Auth for middleware in live server.
note the project works fine on the localhost but not working on live server (cpanel);
I've cleared Laravel cache, changed session storing type (file,database), but same problem. I've tried more than 8 hours to find a solution and after that, I've decided to ask it here.
When I try to login with
https://example.com/graphql/guest
withmutation LoginAdmin($username: String,$password: String){login(username:$username,password:$password){name,api_token}
it works and returns user information. But after I try to check for if user is authenticated withhttps://example.com/graphql
withquery checkAuthUser{check}
it returnsmessage: "Unauthenticated."
Here is my code:
LoginMutation.php
graphql.php
CheckAuthQuery.php
laravel/auth.php
Beta Was this translation helpful? Give feedback.
All reactions