fix: add logging to user parse failure

This commit is contained in:
Stavros
2025-07-12 11:49:37 +03:00
parent 3215bb6baa
commit e742603c15

View File

@@ -736,7 +736,7 @@ func (h *Handlers) OauthCallbackHandler(c *gin.Context) {
// Handle error // Handle error
if err != nil { if err != nil {
log.Error().Msg("Failed to get user") log.Error().Err(err).Msg("Failed to get user")
c.Redirect(http.StatusTemporaryRedirect, fmt.Sprintf("%s/error", h.Config.AppURL)) c.Redirect(http.StatusTemporaryRedirect, fmt.Sprintf("%s/error", h.Config.AppURL))
return return
} }