Liking cljdoc? Tell your friends :D

supabase.auth.errors

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-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`.
raw docstring

auth-error-parserclj

(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.
sourceraw docstring

with-auth-errorsclj

(with-auth-errors req)

Installs the Auth error parser on a request.

Installs the Auth error parser on a request.
sourceraw docstring

cljdoc builds & hosts documentation for Clojure/Script libraries

Keyboard shortcuts
Ctrl+kJump to recent docs
Move to previous article
Move to next article
Ctrl+/Jump to the search field
× close