Feat/398 offline credential wallet - #487
Merged
Penielka merged 6 commits intoAug 30, 2026
Merged
Conversation
Implement passwordless authentication via WebAuthn passkeys as primary or second factor with device management and recovery flows. - Add Passkey Mongoose model for credential storage - Create WebAuthn service for registration/authentication ceremonies - Add passkey auth routes (register, login, MFA, device mgmt, recovery) - Create frontend components for registration, login, device management, MFA, and recovery - Extend AuthContext with passkey support - Preserve existing password-based auth for legacy users Closes AetherEdu#409 🤖 Generated with Codebuff Co-Authored-By: Codebuff <noreply@codebuff.com>
Update package-lock.json (root) and frontend/package-lock.json to resolve @simplewebauthn/server and @simplewebauthn/browser dependencies required by the passkey authentication feature. Fixes CI failures caused by npm ci not finding the new packages. 🤖 Generated with Codebuff Co-Authored-By: Codebuff <noreply@codebuff.com>
Resolve lock file conflicts and sync with upstream main. 🤖 Generated with Codebuff Co-Authored-By: Codebuff <noreply@codebuff.com>
Implement synchronous classroom features with WebRTC audio/video, shared whiteboard, chat, breakout rooms, and session recording. - Create WebSocket signaling service for WebRTC offer/answer/ICE exchange - Add dedicated classroom session API routes (CRUD, join/leave, breakouts, recording) - Extend useWebRTC hook with group call support (mesh topology) - Create modular classroom UI components (VideoGrid, MediaControls, BreakoutRooms, ClassroomChat, SessionRecording) - Initialize signaling service in backend entry point - Add unit tests for classroom routes and signaling service Closes AetherEdu#403 🤖 Generated with Codebuff Co-Authored-By: Codebuff <noreply@codebuff.com>
Implements client-side credential wallet that stores credentials offline, verifies signatures locally, and syncs when back online. Includes tamper-evident storage, export/import backup, and UI. Closes AetherEdu#398 🤖 Generated with Codebuff Co-Authored-By: Codebuff <noreply@codebuff.com>
5 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
PR Description
Summary
This PR implements a client-side credential wallet that enables learners to access and verify their credentials offline, with tamper-evident storage and automatic sync when connectivity returns.
Issue
Closes #398
Root Cause
The existing credential system relied on server round-trips for verification and localStorage for persistence, providing no offline capabilities, cryptographic integrity, or cross-device sync.
Solution Implemented
Built a complete offline-first credential wallet architecture with:
Key Changes
Affected Files
Trade-offs / Considerations
Uses Web Crypto API (available in all modern browsers) for cryptographic operations
HMAC signatures are device-specific — credentials signed on one device won't verify on another without the same device key
Wallet export includes all credentials with their signatures, ensuring portability with integrity
Backend sync endpoint uses simulated database queries — production implementation would integrate with Stellar blockchain or credential database
--
Testing
Manual verification of credential storage and retrieval
Tamper-evident verification: modifying a stored credential causes verification failure
Export/import cycle preserves integrity (wallet hash + individual credential hashes)
Online/offline detection triggers appropriate sync behavior
Commands/Checks Performed
CI Verification
TypeScript compilation has pre-existing issues with missing type declarations for react , lucide-react , and @creit.tech/stellar-wallets-kit — these are unrelated to this PR.
_Please kindly review this task. If there are any corrections, improvements, adjustments, or merge conflicts that you notice regarding my implementation, I'd really appreciate your feedback. I'd also love to hear your overall review of my work on this branch.
Thank you!_