Type Alias HonuaAuthErrorCode

HonuaAuthErrorCode: "interaction_required" | "refresh_failed" | "invalid_grant"

Cause codes for HonuaAuthError. They classify why an auth flow could not produce a usable credential so callers can branch without parsing message strings:

  • interaction_required — no cached credential and no way to obtain one silently (no refresh token, or the refresh token is gone). The app must start an interactive sign-in (oauth2(...).signIn()).
  • refresh_failed — a silent refresh attempt failed for a transient reason (network/5xx/timeout at the token endpoint). Retrying later may succeed.
  • invalid_grant — the authorization server rejected the grant (error: "invalid_grant"): the refresh token or authorization code is expired/revoked/invalid. The stored credential is cleared and interactive sign-in is required.