Display OAuth errors (#159)

This commit is contained in:
Thomas Miceli 2023-11-21 02:41:01 +09:00 committed by GitHub
parent 5fa55dfbba
commit be46304e23
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -140,7 +140,7 @@ func processLogin(ctx echo.Context) error {
func oauthCallback(ctx echo.Context) error { func oauthCallback(ctx echo.Context) error {
user, err := gothic.CompleteUserAuth(ctx.Response(), ctx.Request()) user, err := gothic.CompleteUserAuth(ctx.Response(), ctx.Request())
if err != nil { if err != nil {
return errorRes(400, "Cannot complete user auth", err) return errorRes(400, "Cannot complete user auth: "+err.Error(), err)
} }
currUser := getUserLogged(ctx) currUser := getUserLogged(ctx)