File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed
packages/core/src/codecatalyst Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -375,9 +375,12 @@ export class CodeCatalystAuthenticationProvider {
375
375
return this . memento . get ( this . mementoKey , { } as Record < string , ConnectionState > )
376
376
}
377
377
378
+ public tryGetConnectionState ( conn : SsoConnection ) : ConnectionState | undefined {
379
+ return this . getStates ( ) [ conn . id ]
380
+ }
378
381
public getConnectionState ( conn : SsoConnection ) : ConnectionState {
379
382
return (
380
- this . getStates ( ) [ conn . id ] ?? {
383
+ this . tryGetConnectionState ( conn ) ?? {
381
384
onboarded : false ,
382
385
scopeExpired : false ,
383
386
}
@@ -397,7 +400,7 @@ export class CodeCatalystAuthenticationProvider {
397
400
}
398
401
399
402
public async isConnectionOnboarded ( conn : SsoConnection , recheck = false ) {
400
- const state = this . getConnectionState ( conn )
403
+ const state = this . tryGetConnectionState ( conn )
401
404
if ( state !== undefined && ! recheck ) {
402
405
return state . onboarded
403
406
}
You can’t perform that action at this time.
0 commit comments