Skip to content

kkpsiren/orb-qr-login

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

orb-qr-login

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

Credential Scopes

The default request is credentials=id, which asks Orb for an ID token only.

Available options:

  • id: ID token only
  • id_access: ID token plus access token
  • id_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.

Requirements

  • Bun
  • Orb app for scanning or opening the login approval link

Install

bun install

Run

bun run dev

Open:

http://127.0.0.1:5173/

Build

bun run build

Project Shape

This repo is intentionally minimal:

  • src/App.jsx: QR login UI and flow
  • src/main.tsx: React entrypoint
  • src/styles.css: app styling
  • index.html: Vite HTML entry
  • package.json: Bun/Vite scripts and dependencies

Generated output such as dist and installed dependencies such as node_modules are ignored.

About

lens login w orb!

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors