Skip to content

Conversation

@jamaljsr
Copy link
Member

Summary

This PR introduces the passkeys-demo app as a copy of the existing connect-demo. This establishes a baseline demo application that will be incrementally enhanced with passkey and session-based authentication features in subsequent PRs.

The demo app is intentionally introduced early in the PR stack so that new authentication features can be tested in a realistic React application as they are implemented, rather than waiting until all library code is complete.

Screenshots

image

Technical Notes

  • The passkeys-demo is a direct copy of connect-demo at this stage—no new functionality has been added yet
  • Future PRs will update this demo to showcase passkey registration/login and session-based auto-connect flows

Steps to Test

  1. Create a link for the lnc-web project
    yarn link
    
  2. Navigate to the demo directory:
    cd demos/passkeys-demo
    
  3. Install dependencies:
    yarn install
    
  4. Link the demo to use the local lnc-web project instead of the NPM package
    yarn link @lightninglabs/lnc-web
    
  5. Start the development server:
    yarn start
    
  6. Verify the app loads and behaves identically to connect-demo
    • connect with a pairing phrase and confirm the GetInfo response is displayed
    • reload the page and confirm login works

Alternatively, run the library tests from the project root to ensure the build still works:

yarn lint && yarn typecheck && yarn prettier && yarn build && yarn test:coverage

Related Issues & Pull Requests

Depends on:

@jamaljsr jamaljsr self-assigned this Nov 26, 2025
@jamaljsr jamaljsr requested a review from jbrill November 26, 2025 16:40
@lightninglabs-deploy
Copy link

@jbrill: review reminder

@jamaljsr jamaljsr force-pushed the auth-03-wasm branch 2 times, most recently from 54d5c78 to d4e643e Compare December 9, 2025 23:52
Base automatically changed from auth-03-wasm to main December 12, 2025 14:41
This new demo will be used to showcase the new passkeys and sessions
features in lnc-web. For this initial commit, we are just cloning the
existing connect-demo app.
Copy link

@jbrill jbrill left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Don't think it makes sense to critique the sample app code itself. The images and README look good!

@jamaljsr jamaljsr merged commit 400e206 into main Dec 15, 2025
6 checks passed
@jamaljsr jamaljsr deleted the auth-04-demo-base branch December 15, 2025 20:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants