Skip to content

Type alias: KeyStore2MR

KeyStore2MR: Object

Internal interface to the SSKS two-man rule API.

WARNING: Do not use directly.

Type declaration

challengeValidate

challengeValidate: (args) => Promise<Object>

Parameters

args: Object

args.authFactor: TmrAuthFactor

args.challenge: string

args.sessionId: string

Returns

Promise<Object>

newSessionId

newSessionId: string

extraHeaders

extraHeaders: Record<string, string>

getFactorToken

getFactorToken: (args) => Promise<string>

Parameters

args: Object

args.authFactor: TmrAuthFactor

args.sessionId: string

Returns

Promise<string>

push

push: (args) => Promise<string>

Parameters

args: Object

args.appId?: string

args.authFactor: TmrAuthFactor

args.data: Buffer

args.rawTwoManRuleKey?: string

args.sessionId: string

args.twoManRuleKey?: string

args.userId?: string

Returns

Promise<string>

search: (args) => Promise<Object>

Parameters

args: Object

args.appId?: string

args.rawTwoManRuleKey?: string

args.sessionId: string

args.twoManRuleKey?: string

args.userId?: string

Returns

Promise<Object>

authenticated

authenticated: boolean

data

data: Buffer