/** * Multi-Auth Middleware Usage Examples * * This file demonstrates how to use the new multiAuth middleware * to support multiple authentication methods in your routes. */ declare const router: import("express-serve-static-core").Router; /** * Client-side usage: * * Clients MUST include the x-levr-auth-type header to indicate which auth method they're using: * * For Privy User: * ``` * headers: { * 'x-levr-auth-type': 'privyUser', * 'privy-access-token': 'token...', * 'privy-id-token': 'token...', * 'eth-address': '0x...' // optional * } * ``` * * For HMAC API Key (user API keys): * ``` * headers: { * 'x-levr-auth-type': 'hmac', * 'Authorization': 'HMAC :', * 'x-request-timestamp': '1234567890', * 'x-request-nonce': 'random-string' * } * ``` * * For Service HMAC (backend service API keys): * ``` * headers: { * 'x-levr-auth-type': 'serviceHmac', * 'Authorization': 'HMAC :', * 'x-request-timestamp': '1234567890', * 'x-request-nonce': 'random-string' * } * ``` * * Note: Service API keys are distinguished by having a 'service' field set. * User API keys have service=null. The auth handler validates this automatically. */ export default router;