- This function creates a new sub-organization for the user using the provided OIDC token, public key, and provider name.
- Handles the full OAuth sign-up flow, including sub-organization creation and session management.
- Optionally accepts additional sub-organization creation parameters and a custom session key.
- After successful sign-up, automatically logs in the user and returns a signed JWT session token.
Package: core
Defined in: clients/core.ts:1856
A promise that resolves to a BaseAuthResult, which includes:
sessionToken: the signed JWT session token.