change key

This commit is contained in:
smanylov
2025-12-04 14:20:54 +07:00
parent c4b5d63cef
commit 231e33e066
+2 -1
View File
@@ -3,7 +3,8 @@ import { cookies } from 'next/headers'
import { SignJWT, jwtVerify } from 'jose'
/* import { SessionPayload } from '@/app/lib/definitions' */
const secretKey = process.env.SESSION_SECRET
/* const secretKey = process.env.SESSION_SECRET */
const secretKey = 'AAA+sq1yKte/gMgUUu/B/OyXqr45/LMYplPVOlWc+uo='
const encodedKey = new TextEncoder().encode(secretKey)
export async function encrypt(payload: any) {