move auth utils

This commit is contained in:
Milo Schwartz 2024-10-05 22:31:30 -04:00
parent 0575c0196e
commit 56326f7d6c
9 changed files with 12 additions and 12 deletions

View file

@ -8,9 +8,9 @@ import { db } from "@server/db";
import { passwordResetTokens, users } from "@server/db/schema";
import { eq } from "drizzle-orm";
import { sha256 } from "oslo/crypto";
import { hashPassword } from "./password";
import { verifyTotpCode } from "./2fa";
import { passwordSchema } from "./passwordSchema";
import { hashPassword } from "@server/auth/password";
import { verifyTotpCode } from "@server/auth/2fa";
import { passwordSchema } from "@server/auth/passwordSchema";
import { encodeHex } from "oslo/encoding";
import { isWithinExpirationDate } from "oslo";
import lucia from "@server/auth";