Skip to content

DoxaFoundation/auth-client-demo

 
 

Repository files navigation

Auth-Client Demo

This is an example project, intended to demonstrate how an app developer might integrate with an Internet Identity.

For a non-typescript implementation, see https://github.com/krpeacock/auth-client-demo/tree/vanilla-js

Live demo

This is an example showing how to use @dfinity/auth-client.

Setting up for local development

To get started, start a local dfx development environment in this directory with the following steps:

cd auth-client-demo/
dfx start --background --clean
dfx deploy

Once deployed, start the development server with npm start.

You can now access the app at http://localhost:8080.

Multiple Versions

This demo has multiple versions, each of which demonstrates a different feature of the auth-client. npm start will run the vanilla JS version, but you can run the others by running npm run start:version where version is one of the following:

  • React
  • Vue

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 43.7%
  • CSS 42.5%
  • TypeScript 5.9%
  • HTML 3.4%
  • Vue 2.5%
  • Svelte 1.9%
  • Motoko 0.1%