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
ThirdwebClientThe Thirdweb client instance.
loginUrl
stringThe URL to initiate the login process.
redirectUrl
stringThe URL to redirect to after login.
browserOpenAction
Action<string>An action to open the browser with the login URL.
cancellationToken
CancellationTokenOptional cancellation token to cancel the operation.
Returns
- Task<BrowserResult>
A task representing the asynchronous operation. The task result contains the login result.