loginWithCustomerLoginJwt failing to login #2107
Unanswered
MattyyttaM
asked this question in
Q&A
Replies: 1 comment 1 reply
-
|
The most likely cause of this is clock skew; if your local system clock (or the clock where the JWT generation is happening) is out of sync, JWT validation will fail on our server side due to a timestamp mismatch. Customer Login JWTs must be used within +30 seconds from the You might try synchronizing your clock, or as a hack just set the |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I'm testing the token based login in
/login/token/[token]that uses the loginWithcustomerLoginJwt GraphQL mutation, but I keep getting an error with message "Invalid login. Please attempt to log in again."I've tried this on multiple stores, using the GraphQL playground, my own headless implementation and as well Catalyst.
To generate the JWT I'm using the
generateCustomerLoginApiJwtfunction provided incustomer-login-api, in both my own and cataylst headless applications, using a page route to get the token, which I can then copy and paste in for the token end point and the GraphQL playground.I've also tried getting the timestamp from BigCommerce using the API call, just incase this was an issue.
I can provide more details as required, I'm just not really sure what the issue is as the error response is pretty vague.
Beta Was this translation helpful? Give feedback.
All reactions