better-auth / better-auth

The most comprehensive authentication library for TypeScript
https://better-auth.com
MIT License
3.75k stars 192 forks source link

fix: correct parameter order for password verification method #557

Closed yasseralsaidi closed 15 hours ago

yasseralsaidi commented 1 day ago

Corrected the parameter order for the verify method: Updated the verify function to accept password as the first argument and hash as the second argument.

// BetterAuthOptions types

password: {
        ...
        verify?: (password: string, hash: string) => Promise<boolean>;

// verifyPassword function

export const verifyPassword = async (hash: string, password: string) => {...}
vercel[bot] commented 1 day ago

@yasseralsaidi is attempting to deploy a commit to the better-auth Team on Vercel.

A member of the Team first needs to authorize it.