parse-server
parse-server copied to clipboard
Parse server V6.2.0 & V7.2.0 don't return session token after logInWith google
Issue Description
With the older versions of Parse server, after logInWith Google I could have access to user's session, but with the V6.2.0 & V7.2.0 it returns everything but the sessionToken!
Steps to reproduce
const session = await Parse.User.logInWith('google', {
authData: {
id,
id_token,
access_token,
},
});
Actual Outcome
{
"authData": {
"google": {
"id": "113****7",
"id_token": "****DUZ2I",
"access_token": "****Am"
}
},
"createdAt": "2024-05-06T09:07:55.392Z",
"username": "TE8******5Tv9",
"authDataResponse": {},
"updatedAt": "2024-05-06T09:07:55.392Z",
"objectId": "xoU****YHO",
"__type": "Object",
"className": "_User"
}
Expected Outcome
{
"authData": {
"google": {
"id": "10**17",
"id_token": "****dARiIF",
"access_token": "y***71"
}
},
"createdAt": "2024-05-06T09:06:15.828Z",
"username": "F0VTk9*********PSJGZM",
"sessionToken": "r:5fa4793a*********************ce3",
"updatedAt": "2024-05-06T09:06:15.828Z",
"objectId": "xoU****YHO",
"__type": "Object",
"className": "_User"
}
Environment
Server
- Parse Server version:
6.2.0&7.2.0
Database
- System (MongoDB or Postgres):
MongoDB - Local or remote host (MongoDB Atlas, mLab, AWS, Azure, Google Cloud, etc):
Tested on both
Client
- SDK (iOS, Android, JavaScript, PHP, Unity, etc):
JavaScript