Skip to content

OAuthLoginCallbacks

Namespace: E2E.OAuth

public sealed class OAuthLoginCallbacks

How a login flow talks to the terminal, or whatever hosts it.

Inheritance: object

View source

public required Action<OAuthAuthInfo> OnAuth { get; init; }

The URL to open and how to finish there. Called once per flow.

Value: Action<OAuthAuthInfo>

View source

public Action<string>? OnProgress { get; init; }

Value: Action<string>

View source

public required Func<string, CancellationToken, Task<string>> OnPrompt { get; init; }

Asks the user for text: the pasted code when the local callback never arrives.

Value: Func<string, CancellationToken, Task<string>>

View source