Skip to content
This repository was archived by the owner on Jan 13, 2026. It is now read-only.

Let your users authenticate in a Next.js app with NFTs or SSI. The login requests and the validation of the NFTs or SSI is handled by the IDP Kit, an open-source product by walt.id. NextAuth.js is used as an authentication solution for Next.js.

Notifications You must be signed in to change notification settings

walt-id/waltid-nft-auth-nextjs

Repository files navigation

🚨 Repository Moved

Important

This repository is no longer maintained.

All walt.id development continues in the monorepo:

Login with NFT or SSI build with Next.js and NextAuth.js

Let your users authenticate in a Next.js app with NFTs from a specified collection or with specific traits or with SSI, their Verifiable Credential or DID. The login requests and the validation is handled by the IDP Kit, an open-source product by walt.id. NextAuth.js is used as an authentication solution for Next.js. It builds on the OIDC standards and can therefore be easily configured to work with the IDP Kit.

Usage

  1. Set up the IDP Kit, either locally or use a hosed solution.
  2. Register a client with the IDP Kits CLI or the API exposed.
  3. Update the CLIENT_ID and CLIENT_SECRET environment variables based on the response received from the client registration
  4. In pages/api/auth/[...nextauth].ts update the identityProviderURL parameter of the NFTProvider or SSIProvider depending on where you host the IDP Kit.
  5. Run the project in development mode with yarn dev or build it with yarn build and run it with yarn start

About

Let your users authenticate in a Next.js app with NFTs or SSI. The login requests and the validation of the NFTs or SSI is handled by the IDP Kit, an open-source product by walt.id. NextAuth.js is used as an authentication solution for Next.js.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published