Skip to content

for google auth, the access_token is not being recognised. It only recognises id_token? #7468

Open
@elimau

Description

@elimau

New Issue Checklist

Issue Description

I perform the Parse.user's linkWith request
await user.linkWith('google', payload)
where the payload is
const payload = { authData: { id, access_token } }

It fails with id token is invalid for this user error message

From this documentation, it seems access_token is supported for google.
https://docs.parseplatform.org/parse-server/guide/#google-authdata
Also, reading this issue, it seems access_token is supported.
#4698

Yet, when i read the code of the google auth adapter, it seems it only supports id_token. There is no reference to access_token in that file.

async function verifyIdToken({ id_token: token, id }, { clientId }) {

Was it something that used to be supported but no longer supported?
Am I reading something wrong?

Environment

Server

  • Parse Server version: 4.5.0
  • Local or remote host (AWS, Azure, Google Cloud, Heroku, Digital Ocean, etc): back4app

Metadata

Metadata

Assignees

No one assigned

    Labels

    type:bugImpaired feature or lacking behavior that is likely assumed

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions