Skip to content

Commit

Permalink
Display OAuth errors (#159)
Browse files Browse the repository at this point in the history
  • Loading branch information
thomiceli authored Nov 20, 2023
1 parent 5fa55df commit be46304
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/web/auth.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit be46304

Please sign in to comment.