Errors
DarkAuth uses standard OAuth errors where protocol compatibility matters and structured API errors for application endpoints.
OAuth errors
Section titled “OAuth errors”Common OAuth errors include:
invalid_requestfor malformed or missing parameters.unauthorized_clientwhen the client is not allowed to use the requested flow.invalid_grantfor expired, consumed, mismatched, or invalid grants.access_deniedwhen the user denies or cannot complete authorization.server_errorfor unexpected failures.
API errors
Section titled “API errors”API errors should be machine-readable and stable. Clients should branch on error codes where possible rather than parsing human-readable messages.
Privacy
Section titled “Privacy”Some flows intentionally return generic messages. Password reset is the clearest example: the public request path should not reveal whether an email address belongs to an account.
When debugging, use admin logs and audit logs rather than changing public error messages to expose more detail.