CoastalCommitsPastes/client/lib/server/is-signed-in.ts

7 lines
178 B
TypeScript
Raw Normal View History

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