Docs

AuthenticateAndLoginServerSide

Using Auth, authenticate the user by signing a payload that can be used to securely identify users.

Usage

string token = await sdk.Wallet.AuthenticateAndLoginServerSide("domain", 1);

Configuration

domain

The domain you used in your authentication backend.

Learn more about how auth works.

chainId

The chain ID of the blockchain you want to authenticate with.

authPayloadPath (optional)

The payload generation endpoint in your backend. Defaults to /auth/payload.

authLoginPath (optional)

The login endpoint in your backend. Defaults to /auth/login.

Must be a string.

Return Value

A string representing the final post-login auth token returned by the server.