fix: Add error handling to session store
This commit is contained in:
parent
98ea369664
commit
1af505196a
@ -52,7 +52,12 @@ func callbackHandler(w http.ResponseWriter, r *http.Request) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Store the token in the session
|
// 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.Values["token"] = token
|
||||||
session.Save(r, w)
|
session.Save(r, w)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user