myAccount method
Creates a MyAccountWeb instance for managing the user's authentication methods (MFA factors) via the My Account API.
Requires an accessToken with the appropriate scopes and audience
https://{domain}/me/, which you can obtain with getApiCredentials.
Note: This is backed by the auth0-spa-js MyAccountApiClient and
requires auth0-spa-js v2.21.1 or later. When DPoP is enabled, the
accessToken must have been issued to this same Auth0Web instance.
Usage example
final apiCredentials = await auth0Web.getApiCredentials(
audience: 'https://DOMAIN/me/',
scopes: {'read:me:authentication_methods'},
);
final myAccount = auth0Web.myAccount(
accessToken: apiCredentials.accessToken,
);
final methods = await myAccount.getAuthenticationMethods();
Implementation
MyAccountWeb myAccount({required String accessToken}) =>
MyAccountWeb(accessToken);