Method InvalidateAsync
InvalidateAsync(object?, CancellationToken)
Initiates a logout request by displaying the logout page within a web session. It invalidates the user's identity and removes all associated tokens. After this function is called, the credentials will no longer be usable.
Declaration
public Task<bool> InvalidateAsync(object? state = null, CancellationToken cancellationToken = default)
Parameters
| Type | Name | Description |
|---|---|---|
| object | state | An optional state object passed to the logout callback's State parameter. |
| CancellationToken | cancellationToken | A cancellation token that can be used to cancel the operation. |
Returns
| Type | Description |
|---|---|
| Task<bool> | A Task that returns |
Applies to
Platforms and versions
| Target | Versions |
|---|---|
| .NET | 300 |
| .NET Windows | 300 |
| .NET Android | 300 |
| .NET iOS | 300 |