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

Parse server V6.2.0 does't return session token after logInWith google #9118

Open
EhsanParsania opened this issue May 6, 2024 · 1 comment
Labels
type:bug Impaired feature or lacking behavior that is likely assumed

Comments

@EhsanParsania
Copy link
Member

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 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

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
Copy link

Thanks for opening this issue!

@EhsanParsania EhsanParsania changed the title Parse V6.2.0 does't return session token after logInWith google Parse server V6.2.0 does't return session token after logInWith google May 6, 2024
@mtrezza mtrezza added the type:bug Impaired feature or lacking behavior that is likely assumed label May 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type:bug Impaired feature or lacking behavior that is likely assumed
Projects
None yet
Development

No branches or pull requests

2 participants