How to Use Turnkey EWK
To use the embedded wallet kit effectively, your project is required to:- Use Next.js 13+ with the /app directory structure to leverage server actions.
-
Import Turnkey’s default styles in your
layout.tsxor equivalent entry point: -
Set up environment variables in your
.envfile to configure API connections and optional OAuth providers.
1. Authentication with the Auth Component
The Auth component provides authentication functionality, including email, passkey, phone, and social logins.
Usage Example:

2. Importing and Exporting Wallets
TheImport and Export components allow users to import or export wallets securely.
Import Wallet Example:


3. Optional: Customizing Themes with TurnkeyThemeProvider
The TurnkeyThemeProvider allows you to apply custom styles using CSS variables. This is optional and can be used to customize Turnkey components to match your application’s design.
Usage Example:
