You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
The text was updated successfully, but these errors were encountered:
* Updated the `getServices` method on the `User` entity to construct
objects for the top level fields
* Added special handling for `email.verificationTokens` and
`password.reset`
* Updated tests to match the mongodb tests
Fixes: accounts-js#1110
Bug report
Describe the bug
When using TwoFactor with typeorm, it fails to get the
two-factor
service from the user object because theservices
attribute is an array instead of an object. See the code hereThe code for the
services
attribute construction in typeorm is hereThis is also inconsistent with the service attribute on the
User
in mongodb (which returns it as an object instead of an array).System information
The text was updated successfully, but these errors were encountered: