public virtual async Task VerifySoftwareTokenAsync()

in src/Amazon.Extensions.CognitoAuthentication/CognitoUser.cs [582:595]


        public virtual async Task<VerifySoftwareTokenResponse> VerifySoftwareTokenAsync(string code, CancellationToken cancellationToken) {
            if (string.IsNullOrEmpty(code))
                throw new ArgumentNullException(nameof(code));

            EnsureUserAuthenticated();
            VerifySoftwareTokenRequest request = new VerifySoftwareTokenRequest
            {
                AccessToken = SessionTokens.AccessToken,
                FriendlyDeviceName = Device?.GetDeviceName(),
                UserCode = code
            };

            return await Provider.VerifySoftwareTokenAsync(request, cancellationToken).ConfigureAwait(false);
        }