Skip to content

Commit cf15f2d

Browse files
authored
fix(codecatalyst): never drop tokens in a dev environment (#3363)
1 parent 5439f95 commit cf15f2d

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/credentials/auth.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -605,7 +605,10 @@ export class Auth implements AuthService, ConnectionManager {
605605
})
606606
}
607607

608-
await provider.invalidate()
608+
// XXX: never drop tokens in a dev environment
609+
if (getCodeCatalystDevEnvId() === undefined) {
610+
await provider.invalidate()
611+
}
609612
} else if (profile.type === 'iam') {
610613
globals.loginManager.store.invalidateCredentials(fromString(id))
611614
}

0 commit comments

Comments
 (0)