fix: Add more debug logging
This commit is contained in:
parent
97aae89ce9
commit
63f764d1c5
@ -35,6 +35,7 @@ func rootHandler(w http.ResponseWriter, r *http.Request) {
|
|||||||
log.Println(spew.Sdump(token))
|
log.Println(spew.Sdump(token))
|
||||||
w.Write([]byte("Token retrieved from session"))
|
w.Write([]byte("Token retrieved from session"))
|
||||||
} else {
|
} else {
|
||||||
|
log.Println(spew.Sdump(session))
|
||||||
url := config.AuthCodeURL("state", oauth2.AccessTypeOffline)
|
url := config.AuthCodeURL("state", oauth2.AccessTypeOffline)
|
||||||
http.Redirect(w, r, url, http.StatusFound)
|
http.Redirect(w, r, url, http.StatusFound)
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user