associateSoftwareToken method

Future<String?> associateSoftwareToken()

This is used by an authenticated user trying to authenticate to associate a TOTP MFA

Implementation

Future<String?> associateSoftwareToken() async {
  _signInUserSessionCheck();

  final data = await client!.request(
    'AssociateSoftwareToken',
    {
      'AccessToken': _signInUserSession!.getAccessToken().getJwtToken(),
    },
  );

  return data['SecretCode'];
}