Skip to content

Commit 3c43115

Browse files
committed
add more logging
1 parent 2cfe87e commit 3c43115

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

packages/core/src/auth/auth.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -218,6 +218,8 @@ export class Auth implements AuthService, ConnectionManager {
218218
public async reauthenticate({ id }: Pick<IamConnection, 'id'>, invalidate?: boolean): Promise<IamConnection>
219219
@withTelemetryContext({ name: 'reauthenticate', class: authClassName })
220220
public async reauthenticate({ id }: Pick<Connection, 'id'>, invalidate?: boolean): Promise<Connection> {
221+
//eslint-disable-next-line aws-toolkits/no-console-log
222+
console.log('reauthenticate is called')
221223
const shouldInvalidate = invalidate ?? true
222224
const profile = this.store.getProfileOrThrow(id)
223225
if (profile.type === 'sso') {
@@ -452,6 +454,8 @@ export class Auth implements AuthService, ConnectionManager {
452454
*/
453455
@withTelemetryContext({ name: 'refreshConnectionState', class: authClassName })
454456
public async refreshConnectionState(connection?: Pick<Connection, 'id'>): Promise<undefined> {
457+
//eslint-disable-next-line aws-toolkits/no-console-log
458+
console.log('refreshConnectionState called')
455459
if (connection === undefined) {
456460
return
457461
}
@@ -646,7 +650,11 @@ export class Auth implements AuthService, ConnectionManager {
646650
*/
647651
@withTelemetryContext({ name: 'validateConnection', class: authClassName })
648652
private async validateConnection<T extends Profile>(id: Connection['id'], profile: StoredProfile<T>) {
653+
//eslint-disable-next-line aws-toolkits/no-console-log
654+
console.log('validateConnection is called')
649655
const runCheck = async () => {
656+
//eslint-disable-next-line aws-toolkits/no-console-log
657+
console.log('runCheck is called')
650658
if (profile.type === 'sso') {
651659
const provider = this.getSsoTokenProvider(id, profile)
652660
if ((await provider.getToken()) === undefined) {

0 commit comments

Comments
 (0)