Skip to content

Commit e0f2aea

Browse files
fix authconnectionId selection
1 parent 1975809 commit e0f2aea

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

packages/no-modal/src/connectors/auth-connector/authConnector.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -322,8 +322,10 @@ class AuthConnector extends BaseConnector<AuthLoginParams> {
322322
public getOAuthProviderConfig(params: Pick<AuthLoginParams, "authConnection" | "authConnectionId" | "groupedAuthConnectionId">) {
323323
const { authConnection, authConnectionId, groupedAuthConnectionId } = params;
324324
const providerConfig = this.authConnectionConfig.find((x) => {
325-
if (groupedAuthConnectionId) {
326-
return x.authConnection === authConnection && x.groupedAuthConnectionId === groupedAuthConnectionId;
325+
if (groupedAuthConnectionId && authConnectionId) {
326+
return (
327+
x.authConnection === authConnection && x.groupedAuthConnectionId === groupedAuthConnectionId && x.authConnectionId === authConnectionId
328+
);
327329
}
328330
if (authConnectionId) {
329331
return x.authConnection === authConnection && x.authConnectionId === authConnectionId;

0 commit comments

Comments
 (0)