SIGN IN SIGN UP

secret key rotation: fix key list ordering

The `itsdangerous` serializer interface[1] expects keys to be
provided with the oldest key at index zero and the active signing key
at the end of the list.

[1] - https://itsdangerous.palletsprojects.com/en/stable/serializer/#itsdangerous.serializer.Serializer

(cherry picked from commit pallets/flask@fb54159861708558b5f5658ebdc14709d984361c)

Conflicts:
	CHANGES.rst
	src/flask/sessions.py
	tests/test_basic.py
J
James Addison committed
64febe022e2c1050524fdb687251fdfaa792e205
Parent: 8fb9bb5
Committed by James Addison <55152140+jayaddison@users.noreply.github.com> on 7/29/2025, 12:44:32 PM