Auth-specific HTTP error mapping.
Installed on every Auth request via with-auth-errors. Parity with the
auth-js handleError logic:
msg,
message, error_description or error field) instead of a generic
status phrase.weak_password (as :code or
:error_code), or the legacy :weak_password body shape - are tagged
:supabase/code :weak-password and carry the failing rules under
:auth/weak-password-reasons.Auth-specific HTTP error mapping.
Installed on every Auth request via [[with-auth-errors]]. Parity with the
auth-js `handleError` logic:
* 5xx responses keep the server's own message (the body's `msg`,
`message`, `error_description` or `error` field) instead of a generic
status phrase.
* Weak-password rejections - error code `weak_password` (as `:code` or
`:error_code`), or the legacy `:weak_password` body shape - are tagged
`:supabase/code :weak-password` and carry the failing rules under
`:auth/weak-password-reasons`.(auth-error-parser status body headers _service)Maps an Auth HTTP error response to an anomaly. Wired via
http/with-error-parser; see the namespace docstring for the mapping
rules.
Maps an Auth HTTP error response to an anomaly. Wired via `http/with-error-parser`; see the namespace docstring for the mapping rules.
(with-auth-errors req)Installs the Auth error parser on a request.
Installs the Auth error parser on a request.
cljdoc builds & hosts documentation for Clojure/Script libraries
| Ctrl+k | Jump to recent docs |
| ← | Move to previous article |
| → | Move to next article |
| Ctrl+/ | Jump to the search field |