feat: support WelcomeScreen customization API (#6048)

This commit is contained in:
David Luzar
2023-01-12 15:49:28 +01:00
committed by GitHub
parent 0982da38fe
commit 599a8f3c6f
20 changed files with 715 additions and 379 deletions

View File

@ -38,3 +38,11 @@ export const STORAGE_KEYS = {
VERSION_DATA_STATE: "version-dataState",
VERSION_FILES: "version-files",
} as const;
export const COOKIES = {
AUTH_STATE_COOKIE: "excplus-auth",
} as const;
export const isExcalidrawPlusSignedUser = document.cookie.includes(
COOKIES.AUTH_STATE_COOKIE,
);