CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutSign UpSign In
sagemathinc

Real-time collaboration for Jupyter Notebooks, Linux Terminals, LaTeX, VS Code, R IDE, and more,
all in one place.

GitHub Repository: sagemathinc/cocalc
Path: blob/master/src/packages/util/consts/auth.ts
Views: 687
1
2
// Do NOT change this - this exact string is assumed in @cocalc/hub/user-remember-me and @cocalc/util/client
3
// Of course, they do use this very constant. It's just that if you change this you might have
4
// to rebuild and restart all servers, etc., which gets complicated...
5
export const NOT_SIGNED_IN = "not signed in";
6
7
const VERSION_COOKIE_NAME = "cocalc_version";
8
9
export function versionCookieName(base_path: string): string {
10
return (
11
(base_path.length <= 1 ? "" : encodeURIComponent(base_path)) +
12
VERSION_COOKIE_NAME
13
);
14
}
15
16