This commit is contained in:
smanylov
2025-12-04 12:49:00 +07:00
parent fdbd67914f
commit 3b39c2601d
2 changed files with 5 additions and 9 deletions
+2 -2
View File
@@ -40,7 +40,7 @@ export async function createSession(token: string, email: string) {
expires: expiresAt,
sameSite: 'lax',
path: '/',
})
});
}
export async function getSessionData(type: 'token' | 'email'): Promise<string | null> {
@@ -63,5 +63,5 @@ export async function getSessionData(type: 'token' | 'email'): Promise<string |
export async function deleteSession() {
const cookieStore = await cookies()
cookieStore.delete('session')
cookieStore.delete('session');
}