@aelith/auth-core
v0.1.3
Published
Wallet authentication client SDK for Aelith Auth.
Readme
@aelith/auth-core
Browser and server utilities for Aelith wallet authentication.
Install
npm install @aelith/auth-coreUsage
import { AelithAuthClient } from "@aelith/auth-core"
const client = new AelithAuthClient({
appId: "dapp-auth",
authOrigin: "https://auth.aelith.ai",
})
const result = await client.loginWithWallet({
walletAddress,
signMessage,
})Deployment Notes
- Your registered Aelith app must allow the browser origin you are using.
- If your frontend uses a strict Content Security Policy, allow the auth origin in
connect-src.
Example CSP:
connect-src 'self' https://auth.aelith.aiIf you use a custom authOrigin, allow that origin instead. When CSP blocks the request, browsers usually surface it as a generic network error before the request reaches Aelith Auth.
