alist/internal/device
okatu-loli 6f0cc7a3e8 feat(auth): Enhanced device login session management
- Upon login, obtain and verify `Client-Id` to ensure unique device sessions.
- If there are too many device sessions, clean up old ones according to the configured policy or return an error.
- If a device session is invalid, deregister the old token and return a 401 error.
- Added `EnsureActiveOnLogin` function to handle the creation and refresh of device sessions during login.
2025-08-29 17:32:46 +08:00
..
session.go feat(auth): Enhanced device login session management 2025-08-29 17:32:46 +08:00