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
redirectHtmlOverridestring
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
clientThirdwebClientThe Thirdweb client instance.
loginUrlstringThe URL to initiate the login process.
redirectUrlstringThe URL to redirect to after login.
browserOpenActionAction<string>An action to open the browser with the login URL.
cancellationTokenCancellationTokenOptional cancellation token to cancel the operation.
Returns
- Task<BrowserResult>
A task representing the asynchronous operation. The task result contains the login result.