Skip to content

feat: Implement passwordless authentication system#1342

Merged
YasharF merged 1 commit intosahat:masterfrom
YasharF:master
Apr 14, 2025
Merged

feat: Implement passwordless authentication system#1342
YasharF merged 1 commit intosahat:masterfrom
YasharF:master

Conversation

@YasharF
Copy link
Collaborator

@YasharF YasharF commented Apr 14, 2025

  • Add passwordless login option via email links
  • Add passwordless signup option with automatic login link
  • Refactor email verification system for unified security settings
  • Add IP hash verification to prevent MITM and CSRF attacks
  • Add token expiration and automatic cleanup via middleware
  • Add database indexes for token fields
  • Improve email templates with security instructions
  • Enhance flash messages for better user feedback
  • Add token verification checks before processing links
  • Consolidate email sending logic for maintainability
  • Add security advisory when emailing auth links
  • Implement automatic cleanup of expired tokens on save
  • Add more restrictive rate limiting to auth routes
  • Add timing-safe token verification to harden against CWE-208

This major update improves security and user experience by adding passwordless authentication while hardening the existing email verification system against common attack vectors.

@YasharF YasharF mentioned this pull request Apr 14, 2025
@YasharF YasharF force-pushed the master branch 4 times, most recently from 4b8ab21 to 8180992 Compare April 14, 2025 14:06
- Add passwordless login option via email links
- Add passwordless signup option with automatic login link
- Refactor email verification system for unified security settings
- Add IP hash verification to prevent MITM and CSRF attacks
- Add token expiration and automatic cleanup via middleware
- Add database indexes for token fields
- Improve email templates with security instructions
- Enhance flash messages for better user feedback
- Add token verification checks before processing links
- Consolidate email sending logic for maintainability
- Add security advisory when emailing auth links
- Implement automatic cleanup of expired tokens on save
- Add more restrictive rate limiting to auth routes
- Add timing-safe token verification to harden against CWE-208

This major update improves security and user experience by adding
passwordless authentication while hardening the existing email
verification system against common attack vectors.
@YasharF YasharF merged commit 03229c2 into sahat:master Apr 14, 2025
1 check 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.

1 participant