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
DbAuthHandler allows overriding names for auth and credential fields. However DbAuthHandler doesn't respect overridden name for the User model in webAuthnAuthenticate() method here. This breaks WebAuthn login flow if User model is renamed.
How do we reproduce the bug?
Generate new Redwood app
Setup dbAuth authentication with WebAuthn support.
Rename User model and UserCredential models to Account and AccountCredential respectively.
Attempt to go through WebAuthn login flow. It fails on the login step with the following error:
{
"error": "this.dbCredentialAccessor.findFirst(...).user is not a function"
}
Hahah @antonmoiseev Yeah I just read this issue and thought "hmm this sounds familiar"! Do you want to make a PR for this fix? Would be awesome if you had the capacity!
What's not working?
DbAuthHandler
allows overriding names for auth and credential fields. HoweverDbAuthHandler
doesn't respect overridden name for the User model inwebAuthnAuthenticate()
method here. This breaks WebAuthn login flow if User model is renamed.How do we reproduce the bug?
What's your environment? (If it applies)
Are you interested in working on this?
The text was updated successfully, but these errors were encountered: