Skip to content

Feature: Stateless Authentication (JWT Access & Refresh tokens) + Notifications service fixes - #36

Merged
anonfedora merged 18 commits into
Fracverse:masterfrom
gr4yha7:feature/stateless-auth-module
Jan 26, 2026
Merged

Feature: Stateless Authentication (JWT Access & Refresh tokens) + Notifications service fixes#36
anonfedora merged 18 commits into
Fracverse:masterfrom
gr4yha7:feature/stateless-auth-module

Conversation

@gr4yha7

@gr4yha7 gr4yha7 commented Jan 24, 2026

Copy link
Copy Markdown
Contributor

Description

Implemented a production-ready authentication system featuring stateless JWTs with token rotation and bcrypt-secured PIN storage.

Key Features

  • Stateless Dual-Token System: Separate Access (24h) and Refresh (7d) tokens with token_type claim validation.
  • bcrypt PIN Hashing: All authentication PINs are secured using bcrypt with the default cost factor (12).
  • Ergonomic Middleware: Introduced the AuthenticatedUser extractor for Axum handlers, simplifying user ID access from request.
  • Database Integrity: Added pin_hash migration and resolved critical UUID/String serialization mismatches in the identity and notification services.
  • Enhanced Type Support: Enabled "with-serde_json-1" feature for tokio-postgres to support JSONB metadata in notifications.

Issues:

Closes #7.

@gr4yha7

gr4yha7 commented Jan 25, 2026

Copy link
Copy Markdown
Contributor Author

@anonfedora PR updated.

@anonfedora anonfedora left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM🚀

@anonfedora
anonfedora merged commit 0aae271 into Fracverse:master Jan 26, 2026
0 of 3 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.

[Backend] Authentication Module

2 participants