Important
This repository is no longer maintained.
All walt.id development continues in the monorepo:
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.
- Set up the IDP Kit, either locally or use a hosed solution.
- Register a client with the IDP Kits CLI or the API exposed.
- Update the
CLIENT_IDandCLIENT_SECRETenvironment variables based on the response received from the client registration - In
pages/api/auth/[...nextauth].tsupdate theidentityProviderURLparameter of the NFTProvider or SSIProvider depending on where you host the IDP Kit. - Run the project in development mode with
yarn devor build it withyarn buildand run it withyarn start