getAuthenticationMethods method

Future<List<AuthenticationMethod>> getAuthenticationMethods({
  1. AuthenticationMethodType? type,
})

Lists all authentication methods enrolled by the user.

Optionally filter the results by type (e.g. AuthenticationMethodType.phone).

Requires an access token with the read:me:authentication_methods scope and audience https://{domain}/me/.

Usage example

final methods = await myAccount.getAuthenticationMethods();

// Filtered by type
final phones = await myAccount.getAuthenticationMethods(
  type: AuthenticationMethodType.phone,
);

Implementation

Future<List<AuthenticationMethod>> getAuthenticationMethods(
        {AuthenticationMethodType? type}) =>
    Auth0FlutterWebPlatform.instance
        .getAuthenticationMethods(_accessToken, type);