add tv mode provider
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
import { ConvexError } from "convex/values";
|
||||
import { Password } from "@convex-dev/auth/providers/Password";
|
||||
import type { DataModel } from "./_generated/dataModel";
|
||||
import { ConvexError } from 'convex/values';
|
||||
import { Password } from '@convex-dev/auth/providers/Password';
|
||||
import type { DataModel } from './_generated/dataModel';
|
||||
|
||||
export default Password<DataModel>({
|
||||
profile(params, ctx) {
|
||||
@@ -16,7 +16,7 @@ export default Password<DataModel>({
|
||||
!/[a-z]/.test(password) ||
|
||||
!/[A-Z]/.test(password)
|
||||
) {
|
||||
throw new ConvexError("Invalid password.");
|
||||
throw new ConvexError('Invalid password.');
|
||||
}
|
||||
},
|
||||
});
|
||||
|
@@ -16,5 +16,5 @@ export const getUser = query(async (ctx) => {
|
||||
email: user.email ?? null,
|
||||
name: user.name ?? null,
|
||||
image: user.image ?? null,
|
||||
}
|
||||
};
|
||||
});
|
||||
|
Reference in New Issue
Block a user