Skip to content

JWT login is not working due to unhandled error #2109

@MattyyttaM

Description

@MattyyttaM

Describe the bug
When I go to the route /login/token/[token] to use the customer login with JWT, the request errors.

The request to the GraphQL API for the JWT login is successful, however a call is made to handleCartLogin within the loginWithJwt function inside core/auth which errors, which causes the auth to not be successful

To Reproduce
Steps to reproduce the behavior:

  1. Create a customer SSO JWT
  2. Go to /login/token/[token] replacing [token] with the JWT
  3. This should error and take you to the login, however the JWT login has actually been succesfull.

Expected behavior
Should login successfully with JWT.

Screenshots
If applicable, add screenshots to help explain your problem.

Showing that the GraphQL API returned successfully
Image

A couple of steps through where after it errors
Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions