Skip to content

Conflicts with hCaptcha for WP #942

@Shazamepool

Description

@Shazamepool

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:

  1. Install and activate hCaptcha for WP
  2. Get back an authToken using the login mutation
    mutation singIn($input: LoginInput!) { login(input: $input) { authToken refreshToken } }
  3. Clear the cache
  4. Send an updateSession with the authToken in header (Authorization: Bearer XXX)
    mutation($input: UpdateSessionInput!) { updateSession(input: $input) { customer { sessionToken } } }
  5. Decode the sessionToken obtained in response and check that it's a guest session
  6. 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

No one assigned

    Labels

    bugSomething isn't working

    Type

    Projects

    Status

    Todo

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions