Fix: Middlerawe/1
This commit is contained in:
@@ -5,7 +5,7 @@ import _ from "lodash";
|
||||
import { cookies } from "next/headers";
|
||||
|
||||
export async function funCheckToken() {
|
||||
const c = cookies().get("ssn");
|
||||
const c = cookies().get("mySession");
|
||||
const cekToken = await prisma.userSession.findFirst({
|
||||
where: {
|
||||
token: c?.value,
|
||||
|
||||
@@ -4,7 +4,7 @@ import prisma from "@/app/lib/prisma";
|
||||
import { cookies } from "next/headers";
|
||||
|
||||
export async function funGetUserIdByToken() {
|
||||
const c = cookies().get("ssn");
|
||||
const c = cookies().get("mySession");
|
||||
const token = c?.value
|
||||
const cekToken = await prisma.userSession.findFirst({
|
||||
where: {
|
||||
|
||||
Reference in New Issue
Block a user