This is a reference app generated by Affinidi CLI tool with nextjs
Framework, nextauthjs
Library
Setting up the reference app is easy, just follow these steps:
-
Install the dependencies:
npm install
-
Create a
.env
file:cp .env.example .env
-
Set up environment variables. Please read the configuration guide.
-
(Optional for credential issuance and Affinidi Iota Framework) Setup
Personal Access Token
(PAT) Using Affinidi CLI. Please read the PAT guide. -
(Optional for credential issuance) Create
Credential Issuance Configuration
inAffinidi Portal
. Please read the Credential Issuance guide here. -
(Optional for Affinidi Iota Framework) Create
Affinidi Iota Framework Configuration
inAffinidi Portal
. Please read the Affinidi Iota Framework guide here. -
Launch the app:
npm run dev
App will be available locally on http://localhost:3000.
Important
Use the same project for all your configurations like Personal Access Token (PAT), Credential Issuance & Affinidi Login
In Affinidi CLI
, to list all your projects run: affinidi project list-projects
In Affinidi CLI
, to change the active project run: affinidi project select-project -i <project-id>
Explore our documentation and labs to learn more about integrating Affinidi Login with Affinidi Vault.
This project is built with NextJS framework, which allows you to quickly build apps using TypeScript and React. NextJS has built-in router, server-side rendering and backend support. Read NextJS docs, React docs.