Cleanup login client
This commit is contained in:
parent
c62e587c85
commit
a862a91112
1 changed files with 3 additions and 3 deletions
|
@ -46,9 +46,9 @@ class OctoClient {
|
||||||
}
|
}
|
||||||
|
|
||||||
const responseJson = (await this.getJson(response)) as {token?: string}
|
const responseJson = (await this.getJson(response)) as {token?: string}
|
||||||
this.token = responseJson.token
|
this.token = responseJson.token || ''
|
||||||
if (responseJson.token !== '') {
|
if (this.token) {
|
||||||
localStorage.setItem('sessionId', this.token || '')
|
localStorage.setItem('sessionId', this.token)
|
||||||
return true
|
return true
|
||||||
}
|
}
|
||||||
return false
|
return false
|
||||||
|
|
Loading…
Reference in a new issue