Skip to content

Parse SDK and parse-server: missing documentation for node.js #1929

Closed

Description

@neophob

Hi

I want to use parse-server in a nodejs express application. Are there any up to date documentations available for the nodejs version of the JS SDK? As the JS SDK documentation is for browser JS versions only, there are quite some differences when using nodejs like:

  • require('parse/node'); instead require('parse');
  • no Parse.User.current(); user

I have some issues with basic functions like:

  • how do I logout an active session?
  • how to verify if current session is valid?
  • how do I prevent that the session table create a new entry for each login (old session entry is not deleted if the same user on the same machine login again)?

I use the parse-server hosting from nodechef.com (latest server and dashboard versions)

Activity

  1. drew-gross commented on May 27, 2016

    @drew-gross
    Contributor

    To logout a session, you just delete it from the _Session class. To verify if one is valid, you just make requests with it. If the requests succeed, it is valid (you could also query in the session class). You can't prevent a new session from being created on each login, as a new session on each login is pretty much the whole point of revocable sessions. You can periodically delete old sessions though, or delete all old sessions upon login.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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