chore(easyauth) save Store

This commit is contained in:
kekskurse 2024-09-26 23:33:59 +02:00
parent cbfea3632a
commit ed070dddfa

View file

@ -36,6 +36,7 @@ func (e EasyAuth) GetUser(w http.ResponseWriter, r *http.Request) (AuthentikUser
if r.Method == http.MethodGet { if r.Method == http.MethodGet {
store.Set("url", r.URL.String()) store.Set("url", r.URL.String())
store.Save()
} }
jwtData, ok := store.Get("jwt") jwtData, ok := store.Get("jwt")
@ -100,6 +101,7 @@ func (e EasyAuth) AuthHTTPHandler(w http.ResponseWriter, r *http.Request) {
} }
store.Set("jwt", jwtString) store.Set("jwt", jwtString)
store.Save()
redirectURL, ok := store.Get("url") redirectURL, ok := store.Get("url")
redirectUrlString := "/" redirectUrlString := "/"