mirror of
https://github.com/usebruno/bruno.git
synced 2024-11-21 23:43:15 +01:00
fix: pkce validation error (#2075)
- pkce is now `false` by default to prevent save errors
This commit is contained in:
parent
eddac73341
commit
23674fffbc
@ -165,7 +165,7 @@ const oauth2Schema = Yup.object({
|
||||
}),
|
||||
pkce: Yup.boolean().when('grantType', {
|
||||
is: (val) => ['authorization_code'].includes(val),
|
||||
then: Yup.boolean().defined(),
|
||||
then: Yup.boolean().default(false),
|
||||
otherwise: Yup.boolean()
|
||||
})
|
||||
})
|
||||
|
Loading…
Reference in New Issue
Block a user