@web5nexus/authmodal-dynamic
v0.1.3
Published
Web5 Nexus Auth Modal — Dynamic Labs adapter (BYOK environmentId + React host)
Readme
@web5nexus/authmodal-dynamic
Dynamic Labs adapter for Web5 Auth Modal. Dynamic’s auth UX is React-centric — you must mount DynamicAdapterHost once in your React tree.
Install
npm install @web5nexus/authmodal-dynamic @web5nexus/authmodal-core @dynamic-labs/sdk-react-core @dynamic-labs/ethereum react react-domUsage
import { dynamic, DynamicAdapterHost } from '@web5nexus/authmodal-dynamic'
import { AuthModalProvider, ConnectButton } from '@web5nexus/authmodal-react'
const adapter = dynamic({
environmentId: import.meta.env.VITE_DYNAMIC_ENVIRONMENT_ID,
})
export function App() {
return (
<DynamicAdapterHost environmentId={import.meta.env.VITE_DYNAMIC_ENVIRONMENT_ID}>
<AuthModalProvider adapters={[adapter]} /* … */>
<ConnectButton />
</AuthModalProvider>
</DynamicAdapterHost>
)
}Dashboard
- Create an environment at Dynamic Dashboard
- Copy the Environment ID
- Enable email / social login methods and allowlist origins
License
MIT — Web5 Nexus Team
