WalletAuthenticator.verify() method
This API is provided as a preview for developers and may change based on feedback that we receive. Do not use this API in a production environment.
Verify Logged In Address
Example
const domain = "thirdweb.com";
const loginPayload = await sdk.auth.login(domain);
// Verify the login request
const address = sdk.auth.verify(domain, loginPayload);
Signature:
verify(domain: string, payload: LoginPayload, options?: VerifyOptions): string;
Parameters
Parameter | Type | Description |
---|---|---|
domain | string | The domain of the server-side application to verify the login request for |
payload | LoginPayload | The login payload to verify |
options | VerifyOptions | (Optional) |
Returns:
string
Address of the logged in wallet
Remarks
Server-side function to securely verify the address of the logged in client-side wallet by validating the provided client-side login request.