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