Skip to content

Parse Server doesn't return sessionToken on Parse.User.current().fetch() on JS SDK #845

Closed
@tobernguyen

Description

@tobernguyen

In my Facebook application, when I call Parse.User.current().fetch(), Parse Server won't return sessionToken for that user as Parse API do. After that JS SDK will save that response (without sessionToken) into localStorage, which made all request after that not include sessionToken.

In my case, after call Parse.User.current().fetch(), I cannot call any cloud function because cloud code will check if the request is called by a logged-in user.

I have added two images, one is call fetch current user via Parse API, and one via Parse Server, 2 servers connected to the same database.

Response from Parse API
response from parse com

Response from Parse Server (missing sessionToken)
response from parse server

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions