@web5nexus/authmodal-privy
v0.1.3
Published
Web5 Nexus Auth Modal — Privy adapter (BYOK appId)
Readme
@web5nexus/authmodal-privy
Privy adapter for Web5 Auth Modal — email OTP and OAuth via @privy-io/js-sdk-core (BYOK).
Install
npm install @web5nexus/authmodal-privy @web5nexus/authmodal-core @privy-io/js-sdk-coreUsage
import { privy } from '@web5nexus/authmodal-privy'
const adapter = privy({
appId: process.env.PRIVY_APP_ID!,
clientId: process.env.PRIVY_CLIENT_ID!,
})Dashboard
- Create an app at Privy Dashboard
- Copy App ID and Client ID (Settings → Clients)
- Enable email / Google / Apple and allowlist your origins
Email login prompts for the OTP in the browser after sendCode. OAuth redirects and completes via privy_oauth_* query params on return.
License
MIT — Web5 Nexus Team
