checkOperationMfa
Function: checkOperationMfa()
checkOperationMfa(
context,operationId,operation?):void
Defined in: packages/core/src/core/operations.ts:58
Check the second factor freshness an operation requires with maxMfaAge
Synchronous and without I/O: it only reads the session, so every transport and canCallOperation listing
apply it alike. maxMfaAge also makes MFA mandatory.
Parameters
context
the execution context
operationId
string
the operation identifier
operation?
OperationDefinition & object = ...
the operation definition
Returns
void
Throws
WebdaError.Unauthorized when the session is anonymous or its second factor is pending
Throws
MfaRequired when the user has no second factor
Throws
MfaStepUpRequired when the second factor was verified more than maxMfaAge ago