Skip to content

code 209 invalid session token #4395

Closed
Closed
@akshaychauhan7737

Description

@akshaychauhan7737

i am trying to authenticate session token and fetching user detaild but there is no information about how to do it at : http://docs.parseplatform.org/js/guide/#users
I tried to google it now i got some code but don't know whether the are correct they are not working for me

 var Session = Parse.Object.extend("_Session");
    var sq = new Parse.Query(Session);
    sq.equalTo('sessionToken', userSessionToken)
    sq.include('user');
    console.log(sq);
    sq.find({
        success: function (sessionResult) {
            if (sessionResult.length == 0) {
                //user not found
            } else {
               //user found
            }
        },
        error: function (error) {  console.log(error); callback(false) }
    });

always giving me error

ParseError { code: 209, message: 'This session token is invalid.' }

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