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