CoastalCommitsPastes/client/lib/server/is-signed-in.ts
2022-11-09 19:46:12 -08:00

6 lines
178 B
TypeScript

import { cookies } from "next/headers"
export const isSignedIn = () => {
const cookieList = cookies()
return cookieList.has("drift-token") && cookieList.has("drift-userid")
}