Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Craft::$app->getUser()->getIdentity() return null even if the user is login. #143

Open
jesuismaxime opened this issue Jan 8, 2024 · 1 comment
Assignees

Comments

@jesuismaxime
Copy link

Once the user is logged through the GQL mutation, I need to validate that a User exist into a custom PHP Module. Even tho the mutation is successful (JSON response), the Craft's native Craft::$app->getUser()->getIdentity() return null.

Notes:

  • the action where I called my PHP Module is done after the Authenticate mutation (and only when it's successful.
  • I tried to push to Token to my action to performed a getUserFromToken in the backend, but the function do not accept a string, so this was a dead end.
@jesuismaxime
Copy link
Author

Any follow up?

@jamesedmonston jamesedmonston self-assigned this May 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants