getUserDevices method
Gets all MFA devices associated with the authenticated user.
Returns a Future that completes with a list of MfaDevice objects representing all MFA devices (TOTP, passkeys, email, etc.) configured for the user.
Implementation
Future<List<MfaDevice>> getUserDevices() =>
_requestChannel.request<List<MfaDevice>>(
'getUserDevices',
builder: (data) {
if (data is List) {
return data.map((item) => MfaDevice.fromJson(item)).toList();
}
return <MfaDevice>[];
},
);