2022-11-10 02:11:36 -05:00
|
|
|
import { TOKEN_COOKIE_NAME, USER_COOKIE_NAME } from "@lib/constants"
|
2022-11-09 22:46:12 -05:00
|
|
|
import { cookies } from "next/headers"
|
|
|
|
|
|
|
|
export const isSignedIn = () => {
|
|
|
|
const cookieList = cookies()
|
2022-11-10 02:11:36 -05:00
|
|
|
return cookieList.has(TOKEN_COOKIE_NAME) && cookieList.has(USER_COOKIE_NAME)
|
2022-11-09 22:46:12 -05:00
|
|
|
}
|