Variable createNewCodeForDevice
createNewCodeForDevice: (
input: {
deviceId: string;
tenantId: string;
userContext?: Record<string, any>;
userInputCode?: string;
},
) => Promise<
| {
codeId: string;
codeLifetime: number;
deviceId: string;
linkCode: string;
preAuthSessionId: string;
status: "OK";
timeCreated: number;
userInputCode: string;
}
| { status: "RESTART_FLOW_ERROR"
| "USER_INPUT_CODE_ALREADY_USED_ERROR" },
> = Wrapper.createNewCodeForDevice
Type declaration
- (
input: {
deviceId: string;
tenantId: string;
userContext?: Record<string, any>;
userInputCode?: string;
},
): Promise<
| {
codeId: string;
codeLifetime: number;
deviceId: string;
linkCode: string;
preAuthSessionId: string;
status: "OK";
timeCreated: number;
userInputCode: string;
}
| { status: "RESTART_FLOW_ERROR"
| "USER_INPUT_CODE_ALREADY_USED_ERROR" },
> Parameters
- input: {
deviceId: string;
tenantId: string;
userContext?: Record<string, any>;
userInputCode?: string;
}
Returns Promise<
| {
codeId: string;
codeLifetime: number;
deviceId: string;
linkCode: string;
preAuthSessionId: string;
status: "OK";
timeCreated: number;
userInputCode: string;
}
| { status: "RESTART_FLOW_ERROR"
| "USER_INPUT_CODE_ALREADY_USED_ERROR" },
>