mfaEnrolled function
Whether the current user has at least one verified TOTP factor.
Implementation
@riverpod
AsyncValue<bool> mfaEnrolled(Ref ref) {
return ref
.watch(mfaFactorsProvider)
.whenData((factors) => factors.isNotEmpty);
}
Whether the current user has at least one verified TOTP factor.
@riverpod
AsyncValue<bool> mfaEnrolled(Ref ref) {
return ref
.watch(mfaFactorsProvider)
.whenData((factors) => factors.isNotEmpty);
}