Draft
Conversation
…ssword reset Implement full auth system including user registration, login with Argon2id password hashing, JWT access/refresh tokens, email verification flow, password reset flow, and per-endpoint rate limiting for auth routes.
…differentiated paste rate limits - Invalidate old reset tokens in forgot_password (was select-only, no-op) - Invalidate old verification tokens in resend_verification_email - Fix TokenExpiredError to use actual token type instead of hardcoded "access token" - Narrow get_optional_current_user exception catch to auth-specific errors - Fix stale get_exempt_key reference in paste routes via module-level access - Add max_length=512 to LoginRequest fields to prevent Argon2 DoS - Broaden _verify_password to catch InvalidHashError and HashingError - Deduplicate password validation logic into shared function - Add differentiated rate limits: authenticated users get 20/min vs 4/min anonymous for paste creation, using slowapi key-based limit resolution
Add user_id FK to pastes table so authenticated users' pastes are associated with their account. Adds GET /pastes/me endpoint to retrieve a user's own pastes.
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.
No description provided.