Hi @devpriya
Can you please check if the URL that you are passing in the redirect_uri query parameter on /authorize endpoint is added in Okta under Admin >> Security >> API >> Trusted Origins (or Admin >> API >> Trusted Origins if using the developer console) with redirect option enabled?