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
Parameter | Type |
---|---|
args | object |
args.authFactor | AuthFactor |
args.challenge | string |
args.sessionId | string |
Returns
Promise
< { newSessionId
: string
; } >
extraHeaders
extraHeaders: Record
< string
, string
>
push
push: (args
) => Promise
< string
>
Parameters
Parameter | Type |
---|---|
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
search: (args
) => Promise
< { authenticated
: boolean
; data
: Buffer
; } >
Parameters
Parameter | Type |
---|---|
args | object |
args.appId ? | string |
args.rawTwoManRuleKey ? | string |
args.sessionId | string |
args.twoManRuleKey ? | string |
args.userId ? | string |
Returns
Promise
< { authenticated
: boolean
; data
: Buffer
; } >