Magic-link sign in UI and APIs

This commit is contained in:
adilallo committed 2026-04-06 16:37:15 -06:00
1 parent 331ed40234
commit 7218947df3
74 files changed
+1582 -363

No files matched your search

+4 -1
View File
@@ -50,7 +50,10 @@ export async function createSessionForUser(
return { token, expiresAt };
}
export async function setSessionCookie(token: string, expiresAt: Date): Promise<void> {
export async function setSessionCookie(
token: string,
expiresAt: Date,
): Promise<void> {
const store = await cookies();
store.set(SESSION_COOKIE_NAME, token, {
httpOnly: true,