(isDev: boolean = false)
| 17 | private onTokenRefresh?: (authData: AuthData) => void |
| 18 | |
| 19 | constructor(isDev: boolean = false) { |
| 20 | this.store = new AuthStore(app.getPath("userData")) |
| 21 | this.isDev = isDev |
| 22 | |
| 23 | // Schedule refresh if already authenticated |
| 24 | if (this.store.isAuthenticated()) { |
| 25 | this.scheduleRefresh() |
| 26 | } |
| 27 | } |
| 28 | |
| 29 | /** |
| 30 | * Set callback to be called when token is refreshed |
nothing calls this directly
no test coverage detected