Skip to main content

verifyMfaProof

@webda/core


Function: verifyMfaProof()

verifyMfaProof(proof, owner, attribute, maxAge?): Promise<string>

Defined in: packages/core/src/models/mfa.model.ts:197

Check a step-up proof returned by the <Model>.Mfa.Verify operation: signed, unexpired, issued for this object to the current caller

Parameters​

proof​

string

the proof

owner​

any

the object holding the MFA behavior

attribute​

string

MFA attribute that must have verified

maxAge?​

number

maximum age in seconds, when stricter than the proof lifetime

Returns​

Promise<string>

the method that verified, undefined when the proof is not valid for this object and caller