Skip to content

Commit

Permalink
logging
Browse files Browse the repository at this point in the history
  • Loading branch information
RobKraft committed Dec 22, 2024
1 parent 8e97b12 commit 00621a3
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion auth.go
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,6 @@ func CallbackHandler(w http.ResponseWriter, r *http.Request) {
return
}

log.Printf("rawIDToken: %v", rawIDToken)
log.Printf("profile: %v", profile)

// Redirect to logged in page
Expand Down Expand Up @@ -198,9 +197,12 @@ func AuthMiddleware(next http.Handler) http.Handler {
if err != nil && err != sql.ErrNoRows {
log.Println(err)
}
} else {
log.Printf("not logged in, profile: %v", profile)
}
ctx := context.WithValue(r.Context(), "user", user)
next.ServeHTTP(w, r.WithContext(ctx))

})
}

Expand Down

0 comments on commit 00621a3

Please sign in to comment.