From 2bd727aac22a8bf904daa0dab408db25871f82f3 Mon Sep 17 00:00:00 2001 From: alex <48489896+devnaumov@users.noreply.github.com> Date: Fri, 12 Jan 2024 18:58:01 +0100 Subject: [PATCH] CB-3995 move anonymous id to const (#2292) Co-authored-by: Daria Marutkina <125263541+dariamarutkina@users.noreply.github.com> --- webapp/packages/core-authentication/src/UserInfoResource.ts | 4 +++- webapp/packages/core-projects/src/ProjectsService.ts | 4 ++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/webapp/packages/core-authentication/src/UserInfoResource.ts b/webapp/packages/core-authentication/src/UserInfoResource.ts index 2f3c6b73bd..aa268c7f70 100644 --- a/webapp/packages/core-authentication/src/UserInfoResource.ts +++ b/webapp/packages/core-authentication/src/UserInfoResource.ts @@ -26,6 +26,8 @@ export interface ILoginOptions { linkUser?: boolean; } +export const ANONYMOUS_USER_ID = 'anonymous'; + @injectable() export class UserInfoResource extends CachedDataResource { readonly onUserChange: ISyncExecutor; @@ -66,7 +68,7 @@ export class UserInfoResource extends CachedDataResource