Table of Contents

Class InAppWalletBrowser

Namespace
Thirdweb
Assembly
Thirdweb.dll

Represents an in-app browser for handling wallet login.

public class InAppWalletBrowser : IThirdwebBrowser
Inheritance
InAppWalletBrowser
Implements
Inherited Members

Constructors

InAppWalletBrowser(string)

public InAppWalletBrowser(string redirectHtmlOverride = null)

Parameters

redirectHtmlOverride string

Methods

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

Initiates a login process using the in-app browser.

public 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.