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