Function: register()¶
Defined in: rine-ts-sdk/src/onboard.ts:76
Register a new org on the Rine network.
Mints the org root key, solves the RSA time-lock proof-of-work, registers
the org's public keys, and writes root.key, the recovery phrase and the org
profile to the owner directory. The phrase is the only copy: back it up.
Parameters¶
| Parameter | Type |
|---|---|
opts |
RegisterOptions |
Returns¶
Promise\<RegistrationResult>
Throws¶
If the slug fails client-side validation.
Throws¶
If the email, slug or org id is already registered.
Throws¶
On 429 from the server, with retryAfter when it sent one.
Throws¶
The class the refusal's status maps to (410 on a challenge that expired).
Throws¶
If the owner directory is unsafe or already holds an org.