From 752f8e68dd1eaf5eac04ae9c787cd26bc9cc73a0 Mon Sep 17 00:00:00 2001 From: Alexander Onnikov Date: Fri, 2 Feb 2024 23:11:38 +0700 Subject: [PATCH] Revert "UBERF-5237 Use path in token cookie (#4480)" (#4503) Signed-off-by: Alexander Onnikov --- plugins/workbench-resources/src/connect.ts | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/plugins/workbench-resources/src/connect.ts b/plugins/workbench-resources/src/connect.ts index 00854b6009..bb4334c2ec 100644 --- a/plugins/workbench-resources/src/connect.ts +++ b/plugins/workbench-resources/src/connect.ts @@ -51,14 +51,9 @@ export async function connect (title: string): Promise { } const tokens: Record = fetchMetadataLocalStorage(login.metadata.LoginTokens) ?? {} const token = tokens[ws] - const path = `/${loc.path[0]}/${loc.path[1]}` setMetadata(presentation.metadata.Token, token) document.cookie = - encodeURIComponent(presentation.metadata.Token.replaceAll(':', '-')) + - '=' + - encodeURIComponent(token) + - '; path=' + - path + encodeURIComponent(presentation.metadata.Token.replaceAll(':', '-')) + '=' + encodeURIComponent(token) + '; path=/' const endpoint = fetchMetadataLocalStorage(login.metadata.LoginEndpoint) const email = fetchMetadataLocalStorage(login.metadata.LoginEmail)