diff --git a/oidc.go b/oidc.go index 65e2807f..598a208d 100644 --- a/oidc.go +++ b/oidc.go @@ -130,6 +130,10 @@ func (h *Headscale) OIDCCallback(ctx *gin.Context) { oauth2Token, err := h.oauth2Config.Exchange(context.Background(), code) if err != nil { + log.Error(). + Err(err). + Caller(). + Msg("Could not exchange code for token") ctx.String(http.StatusBadRequest, "Could not exchange code for token") return