fix: Add more debug logging

This commit is contained in:
Danny Bessems 2024-03-11 14:32:17 +11:00
parent 97aae89ce9
commit 63f764d1c5
1 changed files with 1 additions and 0 deletions

View File

@ -35,6 +35,7 @@ func rootHandler(w http.ResponseWriter, r *http.Request) {
log.Println(spew.Sdump(token))
w.Write([]byte("Token retrieved from session"))
} else {
log.Println(spew.Sdump(session))
url := config.AuthCodeURL("state", oauth2.AccessTypeOffline)
http.Redirect(w, r, url, http.StatusFound)
}