/// <summary>
        /// Gets an <see cref="AccessToken"/> for the user.
        /// </summary>
        /// <param name="cancellationToken">The cancellation token for the task.</param>
        /// <returns>/// Contains the access token for the user.</returns>
        public AccessToken GetToken(CancellationToken cancellationToken = default)
        {
            if (_isDisposed)
            {
                throw new ObjectDisposedException(nameof(CommunicationTokenCredential));
            }

            return(_tokenCredential.GetToken(cancellationToken));
        }