Skip to main content

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

ParameterTypeDescription
domainstringThe domain of the server-side application to verify the login request for
payloadLoginPayloadThe login payload to verify
optionsVerifyOptions(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.