start to move session stores into there own key value in memory store

This commit is contained in:
Gregory Wells
2026-06-08 18:16:07 -04:00
parent 3b31adf3e2
commit f6016bbdb1
9 changed files with 62 additions and 60 deletions
+3 -1
View File
@@ -6,12 +6,13 @@ import (
"time"
"astraltech.xyz/accountmanager/src/logging"
"astraltech.xyz/accountmanager/src/store"
)
const SessionCookieName = "session_token"
type SessionManager struct {
store SessionStore
store store.Store[string, *SessionData]
}
var instance *SessionManager
@@ -93,6 +94,7 @@ func (manager *SessionManager) GetSession(r *http.Request) (*SessionData, error)
if err != nil {
return nil, ErrSessionNotFound
}
// TODO: handle token expiry here
return data, nil
}