mirror of
https://github.com/AlistGo/alist.git
synced 2025-12-24 06:30:05 +08:00
- 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. |
||
|---|---|---|
| .. | ||
| session.go | ||