-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Closed
Description
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
Labels
No labels