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

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

args.authFactor: TmrAuthFactor

args.sessionId: string

Returns

Promise<string>

push()

push: (args) => Promise<string>

Parameters

args

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

args.appId?: string

args.rawTwoManRuleKey?: string

args.sessionId: string

args.twoManRuleKey?: string

args.userId?: string

Returns

Promise<object>

authenticated

authenticated: boolean

data

data: Buffer