Skip to main content

Search OfficeIMO

Enter a topic, API type, or PowerShell command.

Documentation Search all OfficeIMO/

API Reference

Interface

IGoogleWorkspaceTokenStore

Namespace OfficeIMO.GoogleWorkspace.Auth.GoogleApis
Assembly OfficeIMO.GoogleWorkspace.Auth.GoogleApis
Source revision 5bd172b753d5 with working tree changes
Modifiers abstract

Persistence boundary for OAuth refresh tokens and related authorization state. Implementations are responsible for encrypting sensitive values at rest.

Usage

Explore 2 API references to this type

This type appears in these public API surfaces even when no hand-authored example is attached directly to the page.

Accepted by parameters 1

Methods

public abstract Task ClearAsync() #
Returns: Task

Deletes all authorization state owned by this store.

public abstract Task DeleteAsync<T>(String key) #
Returns: Task

Deletes authorization state of the requested type under a key.

Type Parameters

T

Parameters

key System.String requiredposition: 0
public abstract Task<T?> GetAsync<T>(String key) #
Returns: Task<T?>

Reads authorization state, returning null when the key is absent.

Type Parameters

T

Parameters

key System.String requiredposition: 0
public abstract Task StoreAsync<T>(String key, T? value) #
Returns: Task

Stores or replaces authorization state under a key.

Type Parameters

T

Parameters

key System.String requiredposition: 0
value T? requiredposition: 1