fix: password verify argument order

This commit is contained in:
Bereket Engida
2024-11-20 17:04:14 +03:00
parent 0d8108cd60
commit ef9fda90dd

View File

@@ -194,7 +194,7 @@ export interface BetterAuthOptions {
*/
password?: {
hash?: (password: string) => Promise<string>;
verify?: (password: string, hash: string) => Promise<boolean>;
verify?: (hash: string, password: string) => Promise<boolean>;
};
/**
* Automatically sign in the user after sign up