@orangecheck/auth-client / buildAddAccountUrl
Function: buildAddAccountUrl()
function buildAddAccountUrl(cfg: Required<OcAuthConfig>, returnTo?: string): string;
Defined in: types.ts:246
Multi-account · build the URL for the "add another account" entry
point. Same as buildSignInUrl but appends ?add=1 so the
sign-in page knows to preserve the current roster (the new account
is appended; the previously-active account stays signed in too and
remains switch-target reachable).
Parameters
| Parameter | Type |
|---|---|
cfg | Required<OcAuthConfig> |
returnTo? | string |
Returns
string