live · mainnetoc · docs
specs · api · guides
docs / documentation

@orangecheck/auth-client


@orangecheck/auth-client / RedirectToSudoArgs

Interface: RedirectToSudoArgs

Defined in: sudo.tsx:24

Properties

PropertyTypeDescriptionDefined in
<a id="property-config"></a> config?OcAuthConfigOptional auth-client config override · same shape as <OcSessionProvider config={…} />. Defaults to authOrigin: 'https://ochk.io'.sudo.tsx:38
<a id="property-purpose"></a> purpose?stringFree-form tag echoed in the /sudo page UI — e.g. "register a hardware key". The user sees "To <purpose>, confirm with the one-time code…" so the prompt is framed by the action that triggered it. Not security-relevant.sudo.tsx:34
<a id="property-returnto"></a> returnTo?stringWhere to send the browser after the user finishes the sudo ceremony. Defaults to window.location.href at call-time. Must be a family origin (*.ochk.io) or a relative path; the /sudo page coerces unsafe values to /dashboard.sudo.tsx:29