Cover photo

Enabling login with NFTs in your applications

By enabling login with NFTs in your applications, users become their own identity provider and are no longer bound to any centralized entity. With our tutorial, you will learn, step by step, how to make login with NFTs possible in your next.js app.

In this tutorial, we create our own instance of the IDP Kit locally and configure it to check users which want to authenticate for being an owner of a chosen NFT collection. We will register a client, connect our frontend and enable login with NFTs. The frontend builds on Next.js and will use NextAuth.js as authentication library.

The IDP Kit uses the OIDC authentication flow, the same technology used by Sign-in with Apple, Facebook, Twitter and many more. If you want to learn more about it and how it works behind the scenes, you can have a look at our concept section as well as how the ideas are translated when using NFTs. The tutorial is organized into 4 modules:

Modules

  1. IDP Kit Setup — Build and run the project in your local environment.

  2. Client Registration — Retrieve clientId and clientSecret from the IDP Kit, used in the frontend.

  3. NFT Collection Configuration — Set NFT collection required by the users to login successfully.

  4. Next.js — Setup and connect frontend to IDP Kit and enable sign in with NFTs.

The full tutorial can be found here: https://bit.ly/3UIYnaK