Converts a { data, error } result from any FaableAuthClient method
into throw-style control flow: returns data on success, throws the
AuthError on failure.
Every async method on the client follows the never-throw contract — expected
failures resolve in error rather than rejecting. That is the right default
for most UIs, but when you'd rather let an error propagate (a server handler,
a try/catch, a wrapper that normalizes everything to throws), unwrap
saves you from hand-writing if (error) throw error at every call site.
Converts a
{ data, error }result from any FaableAuthClient method into throw-style control flow: returnsdataon success, throws the AuthError on failure.Every async method on the client follows the never-throw contract — expected failures resolve in
errorrather than rejecting. That is the right default for most UIs, but when you'd rather let an error propagate (a server handler, atry/catch, a wrapper that normalizes everything to throws),unwrapsaves you from hand-writingif (error) throw errorat every call site.