Skip to content

TwoFactor service fails with typeorm #1110

Open
@blessanabraham

Description

@blessanabraham

Bug report

Describe the bug

When using TwoFactor with typeorm, it fails to get the two-factor service from the user object because the services attribute is an array instead of an object. See the code here

The code for the services attribute construction in typeorm is here

This is also inconsistent with the service attribute on the User in mongodb (which returns it as an object instead of an array).

System information

  • Version of accounts-js: 0.31.1

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions