We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f51dee9 commit e95eaf9Copy full SHA for e95eaf9
packages/connection-form/src/components/advanced-options-tabs/authentication-tab/authentication-oidc.tsx
@@ -167,14 +167,11 @@ function AuthenticationOIDC({
167
onChange={({
168
target: { checked },
169
}: React.ChangeEvent<HTMLInputElement>) => {
170
- if (checked) {
171
- return handleFieldChanged(
172
- 'skipNonceInAuthCodeRequest',
173
- undefined
174
- );
175
- }
176
-
177
- return handleFieldChanged('skipNonceInAuthCodeRequest', true);
+ // The value of the checkbox is inverse of the value of the oidc option.
+ return handleFieldChanged(
+ 'skipNonceInAuthCodeRequest',
+ checked ? undefined : true
+ );
178
}}
179
data-testid="oidc-send-nonce-in-auth-code-request"
180
id="oidc-send-nonce-in-auth-code-request"
0 commit comments