diff --git a/pkg/spamasaurusrex/main.go b/pkg/spamasaurusrex/main.go index 7f00e35..00ed903 100644 --- a/pkg/spamasaurusrex/main.go +++ b/pkg/spamasaurusrex/main.go @@ -52,7 +52,12 @@ func callbackHandler(w http.ResponseWriter, r *http.Request) { } // Store the token in the session - session, _ := sessionStore.Get(r, "spamasaurusRex") + session, err := sessionStore.Get(r, "spamasaurusRex") + if err != nil { + log.Println(spew.Sdump(err)) + return + } + session.Values["token"] = token session.Save(r, w)