-
-
Notifications
You must be signed in to change notification settings - Fork 141
Open
Labels
bugSomething isn't workingSomething isn't working
Milestone
Description
Describe the bug
When this plugin is installed and activated the updateSession mutation give sessionToken link to guest session. When we deactivates the plugin the updateSession mutation does not return a session linked to the authToken passed in header
To Reproduce
Steps to reproduce the behavior:
- Install and activate hCaptcha for WP
- Get back an authToken using the login mutation
mutation singIn($input: LoginInput!) { login(input: $input) { authToken refreshToken } }
- Clear the cache
- Send an updateSession with the authToken in header (Authorization: Bearer XXX)
mutation($input: UpdateSessionInput!) { updateSession(input: $input) { customer { sessionToken } } }
- Decode the sessionToken obtained in response and check that it's a guest session
- Deactivates hCaptcha plugin and repeat step 4 and 5. This time the token is correctly link to the authenticated user
Expected behavior
The functionality should work in the same way whether or not the Hcaptcha plugin is activated.
Plugin Versions
- WooGraphQL Version: 0.21.2
- WPGraphQL Version: 1.22.0
- WordPress Version: 9.7.1
- WooCommerce Version: 6.2.7
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working
Type
Projects
Status
Todo