weavejester / ring-oauth2

OAuth 2.0 client middleware for Ring
144 stars 38 forks source link

Unclear error messages #53

Closed whamtet closed 3 months ago

whamtet commented 8 months ago

The handler returns status 400 without any headers. Chrome refuses to load the body in such a case which makes it hard to see what the cause of the error is

https://github.com/weavejester/ring-oauth2/blob/master/src/ring/middleware/oauth2.clj#L124

whamtet commented 8 months ago

The fix is trivial, I'll leave it to you @weavejester