Skip to content
This repository was archived by the owner on Jan 20, 2025. It is now read-only.
This repository was archived by the owner on Jan 20, 2025. It is now read-only.

get error on google.validateAuthorizationCode(code, codeVerifier) #87

Description

@anatoliy-t7

Hi. I am getting an error on Google validateAuthorizationCode

103 |         // providers are allowed to return non-400 status code for errors
104 |         if (!("access_token" in result) && "error" in result) {
                                      ^
TypeError: result is not an Object. (evaluating '"access_token" in result')
      at /.../node_modules/arctic/node_modules/oslo/dist/oauth2/index.js:104:33
body URLSearchParams {
  "code": "4/0Acv..................",
  "client_id": "6441.............",
  "grant_type": "authorization_code",
  "redirect_uri": "http://localhost:3000/api/oauth/google/callback",
  "code_verifier": "NPQBRq................",
  "client_secret": "GO....................",
}

What did I do wrong?

Thanks.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions