メインコンテンツへスキップ

create-signup-session

dci create-signup-session <signupRequestId> [body]

Exchanges the one-time activationToken returned by verifySignupRequest for a Firebase custom token once the request is completed, so the browser that entered the code lands in the new tenant without a second email. The token is bound to the request, single-use and valid for 10 minutes. Sign in with signInWithCustomToken against tenantId, then open consoleUrl.

  • signupRequestId — Public signup request id (sr_ prefix).

Pass the request body as name: value arguments or pipe JSON on stdin — see Command structure.

Request​

Content-Type: application/json

FieldTypeRequiredDescription
activationTokenstringyesThe one-time token returned by verifySignupRequest.
Raw JSON schema
{
"type": "object",
"required": [
"activationToken"
],
"properties": {
"activationToken": {
"type": "string",
"description": "The one-time token returned by verifySignupRequest."
}
}
}

Output​

OK - a session for the tenant admin.

By default dci renders the result as a table. Use --output json to get the full structure described below — see Output formats.

FieldTypeDescription
customTokenstringFirebase custom token for the tenant admin; exchange it with signInWithCustomToken.
tenantIdstring
customerIdstring
consoleUrlstring (uri)
Raw JSON schema
{
"type": "object",
"required": [
"customToken",
"tenantId",
"customerId"
],
"properties": {
"customToken": {
"type": "string",
"description": "Firebase custom token for the tenant admin; exchange it with signInWithCustomToken."
},
"tenantId": {
"type": "string"
},
"customerId": {
"type": "string"
},
"consoleUrl": {
"type": "string",
"format": "uri"
}
}
}

Errors​

On failure, dci prints a single error message — with a hint when one is available — and exits with a typed code your scripts can branch on. See Errors and exit codes for the full contract.

HTTP status to exit code mapping
HTTP statusExit codeError codeMeaning
40030VALIDATION_ERRORThe arguments or request body were rejected. Review the command's flags and payload.
40420RESOURCE_NOT_FOUNDThe requested resource does not exist. Check the identifier argument.
40921RESOURCE_CONFLICTThe operation conflicts with the resource's current state.
4101API_ERRORThe request failed; the printed error message has details.

Aliases: createsignupsession