Skip to content

Lost relation between AccessToken and User when using AccessToken stored in redis #56

@vjtc0n

Description

@vjtc0n

Description

Can't use AccessToken Model stored in redis datasource.
Actually, we can store the access_token datas in database, but it loses the relation to User model.

Lines cause the problem (bug)

In: https://github.com/strongloop/loopback/blob/master/common/models/access-token.js
Lines: 242 to 249.

In line: User = AccessToken.registry.findModel(this.principalType);

I found that User is undefined somehow.

Additional information

Version:
loopback 3.14.0

Other questions:

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