Skip to content

Commit 606c9ab

Browse files
authored
fix: append params instead of constructor (aws-amplify#14662)
2 parents adcef05 + 3318d09 commit 606c9ab

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

packages/auth/src/providers/cognito/apis/signInWithRedirect.ts

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -119,11 +119,10 @@ const oauthSignIn = async ({
119119
oAuthStore.storeOAuthState(state);
120120
oAuthStore.storePKCE(value);
121121

122-
const params = new URLSearchParams([
123-
['redirect_uri', redirectUri],
124-
['response_type', responseType],
125-
['client_id', clientId],
126-
]);
122+
const params = new URLSearchParams();
123+
params.append('redirect_uri', redirectUri);
124+
params.append('response_type', responseType);
125+
params.append('client_id', clientId);
127126

128127
// Add either identity_provider or idp_identifier, but not both
129128
if (idpIdentifier) {

0 commit comments

Comments
 (0)