also emite attempted when no sessions
This commit is contained in:
parent
ba77b09916
commit
a262486596
1 changed files with 3 additions and 0 deletions
|
|
@ -206,9 +206,12 @@ export class WorkOsAuthProvider implements AuthenticationProvider, Disposable {
|
|||
}
|
||||
}
|
||||
|
||||
// It is important that every path in this function emits the attempted event
|
||||
// As config loading in core will be locked until refresh is attempted
|
||||
private async _refreshSessions(): Promise<void> {
|
||||
const sessions = await this.getSessions();
|
||||
if (!sessions.length) {
|
||||
this.attemptEmitter.emit("attempted");
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue