oc · docs
docs / documentation

@orangecheck/auth-client


@orangecheck/auth-client / isSudoAccountMismatch

Function: isSudoAccountMismatch()

function isSudoAccountMismatch(body: 
  | {
  reason?: string;
}
  | null
  | undefined): boolean;

Defined in: sudo.tsx:101

True when the response says a sudo ceremony cannot resolve this request. Pairs with handleSudoRequired: try the redirect first, then this.

Parameters

ParameterType
body| { reason?: string; } | null | undefined

Returns

boolean