1
0
mirror of https://github.com/mattermost/focalboard.git synced 2024-11-27 08:31:20 +02:00

Cleanup login client

This commit is contained in:
Chen-I Lim 2021-02-10 14:07:20 -08:00
parent c62e587c85
commit a862a91112

View File

@ -46,9 +46,9 @@ class OctoClient {
}
const responseJson = (await this.getJson(response)) as {token?: string}
this.token = responseJson.token
if (responseJson.token !== '') {
localStorage.setItem('sessionId', this.token || '')
this.token = responseJson.token || ''
if (this.token) {
localStorage.setItem('sessionId', this.token)
return true
}
return false