Skip to content
Sur cette page

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< { newSessionId: string; } >

Parameters

ParameterType
argsobject
args.authFactorAuthFactor
args.challengestring
args.sessionIdstring

Returns

Promise< { newSessionId: string; } >


extraHeaders

extraHeaders: Record< string, string >


push

push: (args) => Promise< string >

Parameters

ParameterType
argsobject
args.appId?string
args.authFactorAuthFactor
args.dataBuffer
args.rawTwoManRuleKey?string
args.sessionIdstring
args.twoManRuleKey?string
args.userId?string

Returns

Promise< string >


search: (args) => Promise< { authenticated: boolean; data: Buffer; } >

Parameters

ParameterType
argsobject
args.appId?string
args.rawTwoManRuleKey?string
args.sessionIdstring
args.twoManRuleKey?string
args.userId?string

Returns

Promise< { authenticated: boolean; data: Buffer; } >