API Reference
Interface
IGoogleWorkspaceTokenStore
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.
Returned or exposed by 1
Accepted by parameters 1
Methods
public abstract Task ClearAsync() #Returns:
TaskDeletes all authorization state owned by this store.
public abstract Task DeleteAsync<T>(String key) #Returns:
TaskDeletes authorization state of the requested type under a key.
Type Parameters
- T
Parameters
- key System.String
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
public abstract Task StoreAsync<T>(String key, T? value) #Returns:
TaskStores or replaces authorization state under a key.
Type Parameters
- T
Parameters
- key System.String
- value T?