Skip to content

Commit 0c46ad9

Browse files
committed
correct auth_userState telemetry in profile selection state, should be connected but not disconnected
1 parent 674973e commit 0c46ad9

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

packages/amazonq/src/extensionNode.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,11 @@ async function getAuthState(): Promise<Omit<AuthUserState, 'source'>> {
112112
getLogger().error(`Current Amazon Q connection is not SSO, type is: %s`, currConn?.type)
113113
}
114114

115+
// Pending profile selection state means users already log in with Sso service
116+
if (authState === 'pendingProfileSelection') {
117+
authState = 'connected'
118+
}
119+
115120
return {
116121
authStatus:
117122
authState === 'connected' || authState === 'expired' || authState === 'connectedWithNetworkError'

0 commit comments

Comments
 (0)