···175175 else if iat - now > 5 then Error "dpop proof in future"
176176 else if not (add_jti jti) then
177177 Error "dpop proof replay detected"
178178- else if not (verify_signature jwt jwk) then
179179- Error "invalid dpop signature"
178178+ else if
179179+ not (try verify_signature jwt jwk with _ -> false)
180180+ then Error "invalid dpop signature"
180181 else
181182 let jkt = compute_jwk_thumbprint jwk in
182183 (* verify ath if access token is provided *)