mirror of
https://github.com/hcengineering/platform.git
synced 2024-12-28 14:03:55 +03:00
TSK-802: Save token to array (#2754)
Signed-off-by: Vyacheslav Tumanov <me@slavatumanov.me>
This commit is contained in:
parent
2401f0e6bc
commit
33b39ba594
@ -76,7 +76,7 @@
|
||||
setMetadata(login.metadata.LoginToken, result.token)
|
||||
const tokens: Record<string, string> = fetchMetadataLocalStorage(login.metadata.LoginTokens) ?? {}
|
||||
tokens[result.workspace] = result.token
|
||||
setMetadataLocalStorage(login.metadata.LoginToken, result.token)
|
||||
setMetadataLocalStorage(login.metadata.LoginTokens, tokens)
|
||||
setMetadataLocalStorage(login.metadata.LoginEndpoint, result.endpoint)
|
||||
setMetadataLocalStorage(login.metadata.LoginEmail, result.email)
|
||||
navigate({ path: [workbenchId, result.workspace] })
|
||||
|
Loading…
Reference in New Issue
Block a user