Skip to content

mtlouzada/nfidSign

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

nfidSign

Screenshot 2024-12-25 172730

Read this in other languages: 🇧🇷 Português 🟢🟡

nfidSign is the third authentication project I developed this week, focused on using the NFID protocol on the Internet Computer (ICP) network. This project demonstrates how to authenticate users using NFID, a login solution that supports Google accounts and also automatically creates a wallet during the authentication process.

Features

  • Login with NFID, including support for Google accounts.
  • Automatic creation of a wallet for the user during login.
  • Display of messages indicating whether the user is authenticated.
  • Logout option to end the user session.(soon)

🛠️ Technologies Used

  • React: JavaScript library for building user interfaces.
  • Vite: Modern tool for frontend development.
  • DFINITY AuthClient: Library for authentication in Internet Computer-based projects.
  • Sass: CSS extension language used for styling.

Learnings

  • Integration with the NFID protocol for secure authentication.
  • Setting up React projects with Vite for agile development.
  • Using AuthClient for identity management on ICP.
  • Responsive and user-friendly styling with Sass.
  • Understanding how wallets work in the ICP ecosystem, automatically created by NFID.

🚧 How to Run Locally

  1. Make sure you're using a compatible environment:

    • For Windows users, you need to install Windows Subsystem for Linux (WSL) and set up a Linux distribution.
  2. Install the authentication library:

npm install --save @dfinity/auth-client
  1. Start ICP:
dfx start --background
  1. Deploy the project:
dfx deploy

Releases

No releases published

Packages

No packages published