chore(easyauth) save Store
This commit is contained in:
parent
cbfea3632a
commit
ed070dddfa
1 changed files with 2 additions and 0 deletions
|
@ -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 := "/"
|
||||||
|
|
Loading…
Reference in a new issue