Show / Hide Table of Contents

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 true if the logout request is successful, otherwise false.

Applies to

Platforms and versions
TargetVersions
.NET300.0 - 300.1
.NET Windows300.0 - 300.1
.NET Android300.0 - 300.1
.NET iOS300.0 - 300.1
In this article
Provide feedback
Back to top Copyright © 2025 Esri.