generated from nhcarrigan/template
fix: suppress expired-token log noise and redirect expired sessions to login #241
Reference in New Issue
Block a user
Delete Branch "fix/auth"
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?
Summary
authMiddlewareno longer callslogger.errorfor expired tokens — expiry is expected behaviour, not an error. Only tampered signatures and malformed tokens (genuinely suspicious) still log.fetchJsonnow handles 401 responses by clearingelysium_tokenandelysium_save_signaturefrom localStorage and redirecting to/. Players whose 30-day token has expired will see the login page instead of a stuck "Invalid or expired token" error screen with no recovery path.Closes #241
✨ This PR was created with help from Hikari~ 🌸