API Docs for:

Class Parse.Session

Parse.Session( )
Parse.Promise current( )

Retrieves the Session object for the currently logged in session.

Returns: <Parse.Promise>

A promise that is resolved with the Parse.Session object after it has been fetched. If there is no current user, the promise will be rejected.

String getSessionToken( )

Returns the session token string.

Returns: <String>
Boolean isCurrentSessionRevocable( )

Determines whether the current session token is revocable. This method is useful for migrating Express.js or Node.js web apps to use revocable sessions. If you are migrating an app that uses the Parse SDK in the browser only, please use Parse.User.enableRevocableSession() instead, so that sessions can be automatically upgraded.

Returns: <Boolean>