Skip to main content
Version: 5.7.0

CreateSettopHandoffCode

Creates a settop handoff code that is valid for a limited amount of time, and in accordance with the provided specifications. Use the AuthenticateSettopHandoff call to log the user in via the generated code.

ServiceOperation
identityCREATE_HANDOFF_ID

Method Parameters

ParameterDescription
numCharsNumber of entries in the generated code
validSecsNumber of seconds that the code should be valid for.
handoffJsonCustom JSON object - will be returned when the user logs in via AuthenticateSettopHandoff
stringPoolThe pool of characters (or phrases) to use to generate the random code. Use this value to constrain the code to digits, or digit-like phrases (i.e. "0n3", "tw0", etc.)

Usage

http://localhost:3000
// Cloud Code only. To view example, switch to the Cloud Code tab
JSON Response
{
"data": {
"handoffCode": "105175"
},
"status": 200
}