Closed RomainLanz closed 6 months ago
Hey there! 👋🏻
This PR changes the argument of withAuthFinder.
withAuthFinder
Before, we were receiving directly the hash module.
const AuthFinder = withAuthFinder(hash.use('scrypt'), { uids: ['email'], passwordColumnName: 'password', })
This was causing some issues if you used the mixin before the app boot (i.e, in a command).
Moving to a function-based approach makes it work since we are delaying the access to hash.
hash
const AuthFinder = withAuthFinder(() => hash.use('scrypt'), { uids: ['email'], passwordColumnName: 'password', })
[!NOTE] Preset and documentation must be updated to reflect the change.
Looks good. Can you please update the preset and the docs both?
Hey there! 👋🏻
This PR changes the argument of
withAuthFinder
.Before, we were receiving directly the hash module.
This was causing some issues if you used the mixin before the app boot (i.e, in a command).
Moving to a function-based approach makes it work since we are delaying the access to
hash
.