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: AuthFactor

args.challenge: string

args.sessionId: string

Returns

Promise<Object>

newSessionId

newSessionId: string

extraHeaders

extraHeaders: Record<string, string>

push

push: (args) => Promise<string>

Parameters

args: Object

args.appId?: string

args.authFactor: AuthFactor

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