Table of Contents

Interface IThirdwebBrowser

Namespace
Thirdweb
Assembly
Thirdweb.dll

Defines an interface for handling browser-based login for Thirdweb.

public interface IThirdwebBrowser

Methods

Login(ThirdwebClient, string, string, Action<string>, CancellationToken)

Initiates a login process using the browser.

Task<BrowserResult> Login(ThirdwebClient client, string loginUrl, string redirectUrl, Action<string> browserOpenAction, CancellationToken cancellationToken = default)

Parameters

client ThirdwebClient

The Thirdweb client instance.

loginUrl string

The URL to initiate the login process.

redirectUrl string

The URL to redirect to after login.

browserOpenAction Action<string>

An action to open the browser with the login URL.

cancellationToken CancellationToken

Optional cancellation token to cancel the operation.

Returns

Task<BrowserResult>

A task representing the asynchronous operation. The task result contains the login result.