<SessionAuth
overrideGlobalClaimValidators={(globalValidators) => [
...globalValidators,
{
...SecondFactorClaim.validators.hasValue(true),
onFailureRedirection: () => "/",
},
]}
>
{children}
I am trying to redirect the user if he has not completed the second factor but the overrideGlobalClaimValidators is giving me this typescript error as attached. What am I doing wrong ?