Minimal Bun + React demo for Orb QR login using @orbclub/modules.
The app shows the smallest useful QR-login flow:
- choose which Orb credentials to request
- generate an Orb QR login request
- scan or open the QR approval link in Orb
- display only the credential fields requested by the selected scope
The default request is credentials=id, which asks Orb for an ID token only.
Available options:
id: ID token onlyid_access: ID token plus access tokenid_access_refresh: ID token plus access and refresh tokens
The demo does not persist returned tokens to browser storage. They are held only in React state for display.
- Bun
- Orb app for scanning or opening the login approval link
bun installbun run devOpen:
http://127.0.0.1:5173/
bun run buildThis repo is intentionally minimal:
src/App.jsx: QR login UI and flowsrc/main.tsx: React entrypointsrc/styles.css: app stylingindex.html: Vite HTML entrypackage.json: Bun/Vite scripts and dependencies
Generated output such as dist and installed dependencies such as node_modules are ignored.