-
Notifications
You must be signed in to change notification settings - Fork 134
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
After login then isAuthenticated = true, but Viewer = null #1907
Comments
Hi, are we going to get an answer to this? |
Hello @tuanfront-end. Not sure why. I wasn't able to reproduce this issue in a site using Local. The viewer data does get populated. Are you able to query the viewer data using that user |
Hi @theodesp I hope you give my WordPress a try and hopefully, you can give me some insight
Thank you so much in-advance |
I am experiencing the same issue where the problem can go unnoticed, but since you have set I can confirm that WPGraphQL is returning the proper viewer value for authenticated requests when executed in the WordPress Admin GraphQL IDE. The strangest part is that I have identical code on two separate machines with the same content, but I'm only experiencing this issue on the machine where I recently set up my site. I've tried downgrading the Node version to match the older setup, and updating al faust wp and js packages to the latest versions, but the issue persists on the newly set up application with the same data and packages as the other one. Adding the Similar issues: Environment information:
Thank you for looking into this. The current temporary solution is to set |
Just wanted to let anyone know that the issue I described in my previous comment has been resolved in a rather strange way. I have simply restarted the process, which I've done many times yesterday, and the only difference this time was that I started the application without CORS disabled. Everything seems to be working as expected now, and the Viewer object contains the proper information. The issue also appears to be resolved when the application is started with CORS disabled. Additionally, I have flushed the permalinks on the new installation, so it looks to me that this action is more likely to solve that rather than the application restart, but I cannot say for certain that this fixed the issue, as I did not test it immediately after. If anyone else encounters a similar strange issue related to the |
Description
I'm not sure if this is an error from Faustjs or from my WordPress, however I couldn't find any problem from WordPress so I'm posting it here because it could be an error from Faust.
When starting a new Faustjs project, doing login and then
isAuthenticated = true
, butViewer
still always returns null.The strange thing is that this problem doesn't happen on local WordPress but it does happen on my public WordPress: https://admin.librum.rs/wp-admin/
Steps to reproduce
Faustwp-getting-started
isAuthenticated=true
, theviewer
is still alwaysnull
Additional context
No response
@faustwp/core Version
^3.0.1
@faustwp/cli Version
^3.0.2
FaustWP Plugin Version
1.3.1
WordPress Version
6.5.4
Additional environment details
WPGraphQL: Version 1.27.0 |
Please confirm that you have searched existing issues in the repo.
The text was updated successfully, but these errors were encountered: