Template Repository
A comprehensive walkthrough of the Okto SDK Template Apps designed for Next.js. This template demonstrates core Okto functionality—including authentication, wallet management, and blockchain interactions—so you can quickly get started building with Okto.
Next.js Template Repository
Getting Started
For detailed installation instructions, select your framework below:

- Clone the repository:
- Change into the project directory and install dependencies:
- Set up environment variables:
- Add your API keys to the
.env
file:
Note
To obtain these credentials:
-
Client Private Key & SWA: Get these from the Okto Dashboard. These keys are essential for authenticating your requests with Okto's services.
-
Google OAuth Credentials: Required for Google Sign-In functionality
- Set up a project in Google Cloud Console
- Create OAuth 2.0 credentials
- Follow our Google Console Setup Guide for detailed instructions
-
Auth Secret (Next.js only): Generate a secure random string for NextAuth.js session handling. You can create one by running:
- Start the development server: