getAuthenticationMethod method

Future<AuthenticationMethod> getAuthenticationMethod({
  1. required String id,
})

Gets a specific authentication method by id.

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

Usage example

final method = await myAccount.getAuthenticationMethod(
  id: 'auth_method_id',
);

Implementation

Future<AuthenticationMethod> getAuthenticationMethod({required String id}) =>
    Auth0FlutterWebPlatform.instance
        .getAuthenticationMethod(_accessToken, id);