Change password algo for the username plugin?

I understand that with emailAndPassword you can do this
export const auth = betterAuth({
//...rest of the options
emailAndPassword: {
password: {
hash: // your custom password hashing function
verify: // your custom password verification function
}
}
})
export const auth = betterAuth({
//...rest of the options
emailAndPassword: {
password: {
hash: // your custom password hashing function
verify: // your custom password verification function
}
}
})
but what about replacing the password algo when using the username() plugin?
0 Replies
No replies yetBe the first to reply to this messageJoin

Did you find this page helpful?