IAuthenticator.GetTokenAsync(Boolean) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Acquires the security token.
public System.Threading.Tasks.Task<Microsoft.Bot.Connector.Authentication.AuthenticatorResult> GetTokenAsync (bool forceRefresh = false);
abstract member GetTokenAsync : bool -> System.Threading.Tasks.Task<Microsoft.Bot.Connector.Authentication.AuthenticatorResult>
Public Function GetTokenAsync (Optional forceRefresh As Boolean = false) As Task(Of AuthenticatorResult)
Parameters
- forceRefresh
- Boolean
Tells the method to acquire a new token regardless of expiration.
Returns
A Task<TResult> object.