Add Usesend but havent tested it just yet
This commit is contained in:
@@ -2,6 +2,7 @@ import { ConvexError } from 'convex/values';
|
||||
import { Password as DefaultPassword } from '@convex-dev/auth/providers/Password';
|
||||
import { validatePassword } from '../password/validate';
|
||||
import type { DataModel } from '../../../_generated/dataModel';
|
||||
import { UsesendOTPPasswordReset } from '../password/reset';
|
||||
|
||||
export const Password = DefaultPassword<DataModel>({
|
||||
profile(params, ctx) {
|
||||
@@ -15,4 +16,5 @@ export const Password = DefaultPassword<DataModel>({
|
||||
throw new ConvexError('Invalid password.');
|
||||
}
|
||||
},
|
||||
reset: UsesendOTPPasswordReset,
|
||||
});
|
||||
|
Reference in New Issue
Block a user