Skip to main content
Version: 6.1.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.

note
  • The code expires after validSecs.
  • It is single-use. It is deleted the first time it is presented to AuthenticateSettopHandoff, even if that authentication then fails, so a retry needs a new 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. The code can be used once within this time.
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
}