change key
This commit is contained in:
@@ -3,7 +3,8 @@ import { cookies } from 'next/headers'
|
|||||||
import { SignJWT, jwtVerify } from 'jose'
|
import { SignJWT, jwtVerify } from 'jose'
|
||||||
/* import { SessionPayload } from '@/app/lib/definitions' */
|
/* 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)
|
const encodedKey = new TextEncoder().encode(secretKey)
|
||||||
|
|
||||||
export async function encrypt(payload: any) {
|
export async function encrypt(payload: any) {
|
||||||
|
|||||||
Reference in New Issue
Block a user