add tv mode provider

This commit is contained in:
2025-09-03 09:03:34 -05:00
parent 64b3b0a854
commit 35215d34a1
30 changed files with 515 additions and 508 deletions

View File

@@ -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.');
}
},
});

View File

@@ -16,5 +16,5 @@ export const getUser = query(async (ctx) => {
email: user.email ?? null,
name: user.name ?? null,
image: user.image ?? null,
}
};
});