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

@orangecheck/auth-client


@orangecheck/auth-client / redirectToSudo

Function: redirectToSudo()

function redirectToSudo(args?: RedirectToSudoArgs): void;

Defined in: sudo.tsx:49

Redirect the current browser to the auth host's /sudo page, preserving return_to and purpose query parameters. The auth host runs the ceremony and bounces back on success.

Throws on SSR — call this only inside a click handler or effect after a 'sudo_required' response.

Parameters

ParameterType
argsRedirectToSudoArgs

Returns

void