Skip to content

Commit

Permalink
fix: use eqaf in Pkce.verify
Browse files Browse the repository at this point in the history
  • Loading branch information
anmonteiro committed Mar 7, 2024
1 parent 731aef4 commit 431ced6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions oidc/pkce.ml
Original file line number Diff line number Diff line change
Expand Up @@ -61,5 +61,5 @@ let verify (verifier : Verifier.t) (challenge : Challenge.t) =
match challenge with
| S256 c ->
let[@warning "-8"] (Challenge.S256 v) = Challenge.make verifier in
String.compare v c = 0
| Plain c -> String.compare verifier c = 0
Eqaf.equal v c
| Plain c -> Eqaf.equal verifier c

0 comments on commit 431ced6

Please sign in to comment.