Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

'invalid_grant' error upon login with Safari (WebKit) #1754

Open
6 tasks done
AdrianAndersen opened this issue May 31, 2024 · 1 comment
Open
6 tasks done

'invalid_grant' error upon login with Safari (WebKit) #1754

AdrianAndersen opened this issue May 31, 2024 · 1 comment

Comments

@AdrianAndersen
Copy link

AdrianAndersen commented May 31, 2024

Checklist

Description

Hi, I have an issue where my Safari users cannot log in. Chrome-like browsers work fine, it is only an issue in Safari afaik.

I can reproduce the issue with the nextjs-auth0 sample app and have talked to other users on the community page that have the same issue.

So, after submitting the correct credentials for a user, the following error comes up in the console. The users encounter a blank screen and are completely unable to log in. This is very breaking for me and my users, as most of them use Safari. Hope you can address this issue swiftly, or correct me if I have misunderstood something.

image

On the auth0 dashboard I get the following logs:

{
  "auth0_client": {
    "env": {
      "node": "v22.2.0"
    },
    "name": "nextjs-auth0",
    "version": "3.5.0"
  },
  "client_id": "[redacted]",
  "client_name": "Next Auth0 Test",
  "connection_id": "",
  "date": "2024-05-31T19:04:16.643Z",
  "description": "Failed to verify code verifier",
  "details": {
    "code": "******************************************32f"
  },
  "hostname": "[redacted]",
  "ip": "[redacted]",
  "type": "feacft",
  "user_agent": "Other 0.0.0 / Other 0.0.0",
  "user_id": "",
  "user_name": "",
  "log_id": "90020240531190416711985000000000000001223372041180740091",
  "tenant_name": "[redacted]",
  "_id": "90020240531190416711985000000000000001223372041180740091",
  "isMobile": false,
  "id": "90020240531190416711985000000000000001223372041180740091"
}

Reproduction

Use the official NextJS docs and setup a standard template application. Then, try to log in with a WebKit-based browser. (Safari on MacOS or Safari/Chrome on IOS)

Additional context

No response

nextjs-auth0 version

3.5.0

Next.js version

13.5.1

Node.js version

20.14.0

@AdrianAndersen AdrianAndersen changed the title 'invalid_grant' error upon login on Safari (WebKit) 'invalid_grant' error upon login with Safari (WebKit) May 31, 2024
@AdrianAndersen
Copy link
Author

Might be related to #1495

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant