/// <inheritdoc /> public async Task <string> GenerateSecret() { var token = await _httpContextAccessor.HttpContext.GetTokenAsync("access_token"); var secretResponse = await client.AssociateSoftwareTokenAsync(new AssociateSoftwareTokenRequest() { AccessToken = token }); return(secretResponse.SecretCode); }