fix(auth): validate token issuer, drop 2FA email gate, unify email-change SQL #125
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "david/fix/jwt-auth-issuer-2fa-gate-sql-split"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
verify_refresh_token and verify_2fa_challenge_token now call set_issuer so cross-deploy tokens fail closed, matching the access-token path; iss is added to RefreshTokenClaims and TwoFactorChallengeClaims and stamped at creation. Remove the unused decode_without_validation footgun (zero callers) that disabled expiry and signature checks. request_email_verification no longer requires 2FA to be enabled, since the verification token itself proves ownership. The email-change immediate and confirm paths now run through executor-generic repository methods (lock_for_update, find_by_id_for_update, email_exists, update_email, revoke_all_user_refresh_tokens, confirm_email_change_request) instead of raw inline SQL, keeping query ownership in the repositories.
#BUNYIP-75
Pull request closed