Skip to content

Duplicate Session Tokens for Users, Not Overwriting Sessions #4907

Closed
@haroot

Description

@haroot

Issue Description

Duplicate Session Tokens for Same User Pointer

Steps to reproduce

New to Company/Codebase not my codebase otherwise i'd be able to fix it and would have used my own framework I already have written.

Expected Results

Users login and have their Session (passport.js) token expire accordingly or get deleted/overwritten

Actual Outcome

Multiple Sessions and not Overwriting

Environment Setup

  • Server

    • parse-server version (Be specific! Don't say 'latest'.) : 2.7.1
    • Operating System: Linux
    • Hardware: Heroku (heroku-16)
    • Localhost or remote server? (AWS, Heroku, Azure, Digital Ocean, etc): Heroku (Which is ran off of AWS apparently)
  • Database

    • MongoDB version: 3.2.18
    • Storage engine: Wired Tiger
    • Hardware: [FILL THIS OUT]
    • Localhost or remote server? (AWS, mLab, ObjectRocket, Digital Ocean, etc): Compose.com (IBM owned, ran off of AWS again LOL)

Logs/Trace

image
Jul 19 15:07:04 prod app/web.1: error: Error generating response. ParseError { code: 101, message: 'Invalid username/password.' } code=101, message=Invalid username/password.
Jul 19 15:07:04 prod app/web.1: error: Invalid username/password. code=101, message=Invalid username/password.
Jul 19 15:06:58 prod app/web.1: info: Ran cloud function getParseUserForEmail for user undefined with:
Jul 19 15:15:01 prod app/web.1: error: invalid session token code=209, message=invalid session token
Jul 19 15:15:01 prod app/web.1: error: invalid session token code=209, message=invalid session token
Jul 19 15:15:01 prod app/web.1: error: invalid session token code=209, message=invalid session token

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