mirror of
https://github.com/nais/wonderwall.git
synced 2026-05-07 08:57:07 +00:00
refactor(handler/sessionrefresh): use found session key instead of looking up key again
This commit is contained in:
@@ -23,7 +23,7 @@ func Handler(src Source, w http.ResponseWriter, r *http.Request) {
|
||||
return
|
||||
}
|
||||
|
||||
data, err := src.GetSessions().Get(r)
|
||||
data, err := src.GetSessions().GetForKey(r, key)
|
||||
if err != nil {
|
||||
switch {
|
||||
case errors.Is(err, session.ErrKeyNotFound), errors.Is(err, session.ErrSessionInactive):
|
||||
|
||||
Reference in New Issue
Block a user