Skip to main content

Hosted login

  1. Hosted verify with returnUrl via getHostedCheckoutUrl. Hosted Verify
  2. User completes passkey or wallet on neus.network.
  3. Finish login with @neus/sdk. Keep Authorization: Bearer for API calls.
You can create a personal access key on Access keys and send it as Authorization: Bearer on API and MCP requests (same header). Bearer on MCP → neus_me. MCP Auth

Signature-based login

For flows that stay in your app without a hosted session:
import { standardizeVerificationRequest, signMessage } from '@neus/sdk';

const standardized = await standardizeVerificationRequest(body, {
  apiUrl: 'https://api.neus.network',
});
const signature = await signMessage({
  provider: window.ethereum,
  walletAddress: body.walletAddress,
  message: standardized.signerString,
});
Use the SDK helpers instead of assembling signing strings yourself. Details: Signing format, API authentication.