Wraps an AuthError as an Elysia-compatible error.
Discriminate in onError via code === 'SupabaseError'. The original AuthError is available as the typed .cause.
onError
code === 'SupabaseError'
AuthError
.cause
Removed with the Elysia adapter on December 1, 2026. The Elysia bridge from the framework integration guide answers auth failures with a Response instead: https://supabase.com/docs/reference/server/frameworks
Response
Wraps an AuthError as an Elysia-compatible error.
Discriminate in
onErrorviacode === 'SupabaseError'. The originalAuthErroris available as the typed.cause.Deprecated
Removed with the Elysia adapter on December 1, 2026. The Elysia bridge from the framework integration guide answers auth failures with a
Responseinstead: https://supabase.com/docs/reference/server/frameworks