Skip to content

feat: implement webauthn biometric credentials verification endpoint#158

Merged
salazarsebas merged 3 commits intoHarmonia-Development:mainfrom
yhoungdev:feat/webauth-biometrics
Oct 7, 2025
Merged

feat: implement webauthn biometric credentials verification endpoint#158
salazarsebas merged 3 commits intoHarmonia-Development:mainfrom
yhoungdev:feat/webauth-biometrics

Conversation

@yhoungdev
Copy link
Contributor

@yhoungdev yhoungdev commented Sep 30, 2025

Implement WebAuthn Biometric Credentials Verification Endpoint

Overview

This PR implements a secure biometric authentication endpoint using WebAuthn for the Stellar wallet service, allowing users to verify their identity using fingerprint or Face ID.

Changes

New Files

  • src/auth/webauthn.ts - WebAuthn utility functions
  • src/routes/auth-verify.ts - POST /auth/verify endpoint
  • tests/routes/auth-verify.test.ts - Unit tests

Features

  • WebAuthn biometric verification (fingerprint/Face ID)
  • Input validation against credentials table
  • Proper error handling with HTTP status codes
  • Comprehensive unit tests with mocking
Screenshot 2025-09-30 at 09 14 24

NB: I also fixed some preview linting error

so BIOME could pass

@salazarsebas
Copy link
Contributor

Hey @yhoungdev , please fix the workflow errors and please resolve the conlficts

@yhoungdev
Copy link
Contributor Author

OK amazing.

@salazarsebas salazarsebas linked an issue Oct 7, 2025 that may be closed by this pull request
@yhoungdev
Copy link
Contributor Author

@salazarsebas I have fixed the conflict.

@salazarsebas
Copy link
Contributor

Hey @yhoungdev , please fix the workflow errors

@yhoungdev
Copy link
Contributor Author

Hey @yhoungdev , please fix the workflow errors

Ok, i'm on it.

- Update CI workflow to use Node.js 20.x instead of 18.x
- Add .nvmrc file to specify Node.js version for local development
- Add engines field to package.json to enforce Node.js >=20.0.0
- Update package-lock.json to include @simplewebauthn/server dependencies
- Fix CI failing due to missing dependencies and unsupported Node version
@yhoungdev
Copy link
Contributor Author

Just made an update that should fix the flow.

@yhoungdev
Copy link
Contributor Author

@salazarsebas all checks have been passed.

@yhoungdev
Copy link
Contributor Author

@salazarsebas workflow has been fixed.

Copy link
Contributor

@salazarsebas salazarsebas left a comment

Choose a reason for hiding this comment

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

LGTM

@salazarsebas salazarsebas merged commit 0493f8c into Harmonia-Development:main Oct 7, 2025
4 checks passed
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.

Verify Biometric Credentials with WebAuthn [wallet - service]

2 participants