Skip to content

Commit

Permalink
fix: redirect_uris is mandatory if grant_types is not selected #807
Browse files Browse the repository at this point in the history
  • Loading branch information
duttarnab committed Mar 6, 2023
1 parent 5ade415 commit a986eb0
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,8 @@ function ClientWizardForm({
setModal(!modal)
}
function validateFinish(){
if(formRef.current.values.grantTypes.includes('authorization_code') || formRef.current.values.grantTypes.includes('implicit')){

if(formRef.current.values.grantTypes.includes('authorization_code') || formRef.current.values.grantTypes.includes('implicit') || formRef.current.values.grantTypes.length == 0){
if(formRef && formRef.current && formRef.current.values.redirectUris.length > 0){
toggle()
}else{
Expand Down

0 comments on commit a986eb0

Please sign in to comment.