File size: 293 Bytes
84c1942
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
export function hasLogIn(): boolean {
  const hasDevAuth = process.env.LOCAL_SERVER || process.env.STAGING;

  return Boolean(
    typeof document !== 'undefined' &&
      (document.cookie.indexOf('signedIn') > -1 ||
        (hasDevAuth && document.cookie.indexOf('signedInDev') > -1))
  );
}