From be46304e23268fb3db82a50bc716640c1b717949 Mon Sep 17 00:00:00 2001 From: Thomas Miceli <27960254+thomiceli@users.noreply.github.com> Date: Tue, 21 Nov 2023 02:41:01 +0900 Subject: [PATCH] Display OAuth errors (#159) --- internal/web/auth.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/web/auth.go b/internal/web/auth.go index c18fe24..e1f7fb2 100644 --- a/internal/web/auth.go +++ b/internal/web/auth.go @@ -140,7 +140,7 @@ func processLogin(ctx echo.Context) error { func oauthCallback(ctx echo.Context) error { user, err := gothic.CompleteUserAuth(ctx.Response(), ctx.Request()) if err != nil { - return errorRes(400, "Cannot complete user auth", err) + return errorRes(400, "Cannot complete user auth: "+err.Error(), err) } currUser := getUserLogged(ctx)