Description
New Issue Checklist
- [x ] I am not disclosing a vulnerability.
- [x ] I am not just asking a question.
- [x ] I have searched through existing issues.
- [ x] I can reproduce the issue with the latest version of Parse Server.
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.
parse-server/src/Adapters/Auth/google.js
Line 64 in 1594afe
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