Skip to content

Another click in confirm account results in error #184

@wolak88

Description

@wolak88

Describe the bug

After user confirms account, second click on the link errors with:

{
  data: null,
  errors: [
    {
      message: "Invalid confirmation token. Please try again",
      locations: [
      {
        line: 1,
        column: 44
      }
      ],
      path: [
        "userConfirmAccount"
      ],
      extensions: {
        code: "USER_ERROR"
      }
    }
  ]
}

Environment

gem "graphql_devise", "~> 0.15"

Steps to reproduce

Create new user account -> click confirmation link -> click in the link again

Expected behavior

If the user confirmed account just redirect to the redirect url.

Actual behavior

Returns graphql error

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions