feat(session): add session list API
- Move token-related functions from auth.go to new session.go - Add session tracking with expiration and cleanup - Implement session list API endpoint - Update login/logout handlers to use session system - Add hourly cleanup of expired tokens and sessions
This commit is contained in:
+1
-1
@@ -166,4 +166,4 @@ func LogRequest(r *http.Request, userID int) {
|
||||
|
||||
func IntToString(i int) string {
|
||||
return strconv.Itoa(i)
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user