0.0.3 • Published 2 years ago

@adxp/auth-lobby v0.0.3

Weekly downloads
-
License
-
Repository
-
Last release
2 years ago

ADX Auth Lobby

  • Holds keys
  • Signs device UCANs
  • Signs application UCANs

Run demo

# Install all packages from monorepo root
yarn

# Build all packages from monorepo root
yarn build

# Run ws-relay
cd ws-relay
yarn start

# Run Auth lobby
cd auth-lobby
yarn start

# (Optional) Run second Auth lobby to test device linking
cd auth-lobby
PORT=3002 yarn start

# Run example application
cd example-app
yarn start

Use API

import serveAuthLobby from '@adxp/auth-lobby'

const server = serveAuthLobby(/* port */3001)
server.on('error', /* ... */)
server.on('listening', /* ... */)