summaryrefslogtreecommitdiff
path: root/src/common/libs/getClientCredential.ts
blob: fc0bd76b834e7f2b3d54630f742922ee24046441 (plain)
1
2
3
4
5
6
7
8
9
"use client";
import { getCookie } from "cookies-next";
import { Credential } from "../types/auth";

export default function getClientCredential(): Credential | null {
  const credentialStr = getCookie("credential");

  return credentialStr ? JSON.parse(credentialStr) : null;
}