incalculable-kilobyte-15019
12/21/2021, 2:00 AMgifted-salesmen-20057
12/21/2021, 7:14 AMBase64url(sha256(code_verifier)) and Code Verifier is random string and string length will be 43-128 character long.
Or
You can use Oauth2 client to generate login_challenge so above method will be covered by the Oauth2 client
Here is an example in golang https://github.com/yusufsyaifudin/oauth2-example-hydra/blob/v0.1.0/cmd/frontend/main.go#L86
For JavaScript or Typescript Check this
https://github.com/shauryadhadwal/oauth2-oidc-client-integrations/blob/master/external-app-three/src/pages/LandingPage.js#L5
And Check this repo it has Oauth Flow using Hydra implementation
https://github.com/shauryadhadwal/oauth2-oidc-client-integrationsincalculable-kilobyte-15019
12/21/2021, 7:41 AMincalculable-kilobyte-15019
12/21/2021, 9:48 AMlimited-tent-11422
12/21/2021, 9:50 AMlogin_challenge and code_challenge. login_challenge is just an ID of specific login request which is generated by Hydra as UUID without - characters. code_challenge is one used for PKCE during Auth Code Flow.incalculable-kilobyte-15019
12/21/2021, 9:54 AM