Skip to content

cache.js makes request.user not updated like Parse API #1062

@tobernguyen

Description

@tobernguyen

Reproduce step:

  1. Login by Facebook (with totally new user, never logged in before)
  2. I have afterSave hook on _User to create statistic for user
  3. Then for the current session, all request to cloud function on parse server will have request.user contain only basic information of _User, which missing statistic field the afterSave hook created.

The only way to make request.user updated is to log out and log in again.
This doesn't happen on Parse.com API.

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