Skip to content

Logout fails for model based on User (other than model called "user") #398

@johnsoftek

Description

@johnsoftek

If you create a model, say Appuser, based on User, when you call Appuser.logout, it fails with:

.../server/node_modules/loopback/lib/models/user.js:232
  this.relations.accessTokens.modelTo.findById(tokenId, function (err, accessT
                             ^
TypeError: Cannot read property 'modelTo' of undefined

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions