IThirdwebWallet.Authenticate
Login to your thirdweb Auth-integrated backend.
var authResult = await wallet.Authenticate<string>(domain: "https://mydomain.com", chainId: 1);
The wallet instance that will sign the SIWE (Sign-In With Ethereum) payload, must be an IThirdwebWallet.
The domain of the backend to authenticate with, must be a string.
The chain ID of the blockchain to authenticate with, must be a BigInteger.
The path to the auth payload endpoint, defaults to "/auth/payload", must be a string.
The path to the auth login endpoint, defaults to "/auth/login", must be a string.
The HTTP method for the auth payload request, either "GET" or "POST". Defaults to "GET".
The HTTP method for the auth login request, either "GET" or "POST". Defaults to "POST".
Whether to separate the payload and signature in the body of the login request, must be a boolean. Defaults to false.
An IThirdwebHttpClient instance to override the default HTTP client, defaults to null.
// Example usage returning the auth result as a stringvar authResult = await wallet.Authenticate<string>(domain: "https://mydomain.com", chainId: 1);// Example usage returning the auth result as a byte arrayvar authResultBytes = await wallet.Authenticate<byte[]>(domain: "https://mydomain.com", chainId: 1);// Example usage returning the auth result as a custom objectvar authResultObject = await wallet.Authenticate<MyCustomType>(domain: "https://mydomain.com", chainId: 1);