This commit is contained in:
Milo Schwartz
2024-10-13 14:59:13 -04:00
parent bdc52dcc48
commit 0e751c6609
3 changed files with 0 additions and 19 deletions

View File

@@ -1,16 +0,0 @@
import { GetUserResponse } from "@server/routers/user";
import { verifySession } from "./verifySession";
export async function isValidUser(): Promise<GetUserResponse | null> {
const user = await verifySession();
if (!user) {
return null;
}
if (!user.emailVerified) {
return null;
}
return user;
}