Fix authentication

This commit is contained in:
Thomas Nordquist
2019-01-15 22:00:35 +01:00
parent f905ba8e89
commit 61b64a5ac2
4 changed files with 210 additions and 105 deletions

View File

@@ -3,7 +3,7 @@ import { EventDispatcher } from '../../../events'
export interface DataSourceState {
connecting: boolean
connected: boolean
error?: Error
error?: string
}
export class DataSourceStateMachine {
@@ -25,7 +25,7 @@ export class DataSourceStateMachine {
public setError(error: Error) {
this.state = {
error,
error: error.message,
connected: false,
connecting: false,
}