@humaneworld/auth
v0.1.0
Published
HUMANE authentication — decentralized identity for any application
Maintainers
Readme
@humaneworld/auth
HUMANE authentication — decentralized identity for any application.
npm install @humaneworld/authUsage
import { HumaneAuthWidget, generateChallenge, verifySignature } from '@humaneworld/auth'
// Check if user has a HUMANE identity
const humane = new HumaneAuthWidget()
const hasIdentity = await humane.hasIdentity()
// Sign a challenge
const challenge = generateChallenge()
const signature = await humane.sign(challenge, did, { siteName: 'Your App' })
// Verify on your server
const valid = await verifySignature(challenge, signature, publicKeyHex)Full documentation: humaneworld.network/developers
