Skip to content

Multiple User child Models problem #527

@glesage

Description

@glesage

Hi All,

I've got 2 separate models that both inherit from the User model: Driver & Agent.
When I login with the first created user of each, the response I get is:

Agent/Login

{
  "id": "55EFKiN0ZtUGgh4mefU4s7DRM9KvyogV7dg14iQEjjD1tNSZK276HBZRVTCpGIFd",
  "ttl": 1209600,
  "created": "2014-09-02T19:02:27.411Z",
  "userId": 1
}

Driver/Login

{
  "id": "pL9qucXRAq9E6YKyAFRBMXc0K4FcTpFYQh9ZxqLN2p3DSDn9A6U3u3zDK57enEz9",
  "ttl": 1209600,
  "created": "2014-09-02T19:03:24.995Z",
  "userId": 1
}

Why is the "userId" always 1? It makes it impossible to trace back the user based on the token and such... also, once I log in a driver the agent that was logged in probably gets his accessToken overridden...

Please advise!

Thanks

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