Skip to content

Commit d20a644

Browse files
committed
Check for org mismatches in handleCredentialsChange
1 parent 55e08a0 commit d20a644

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

packages/cloud/src/WebAuthService.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,8 @@ export class WebAuthService extends EventEmitter<AuthServiceEvents> implements A
141141
if (
142142
this.credentials === null ||
143143
this.credentials.clientToken !== credentials.clientToken ||
144-
this.credentials.sessionId !== credentials.sessionId
144+
this.credentials.sessionId !== credentials.sessionId ||
145+
this.credentials.organizationId !== credentials.organizationId
145146
) {
146147
this.transitionToAttemptingSession(credentials)
147148
}

0 commit comments

Comments
 (0)