Skip to content

Commit

Permalink
chore: add correct return status to auth api
Browse files Browse the repository at this point in the history
  • Loading branch information
andrea-acampora committed Feb 26, 2023
1 parent 032c8ad commit f233034
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,8 @@ fun Route.authAPI(provider: Provider) {
).execute()
) {
call.respond(HttpStatusCode.OK)
} else {
call.respond(HttpStatusCode.Unauthorized, "Error: wrong credentials!")
}
call.respond(HttpStatusCode.Unauthorized, "Error: wrong credentials!")
}
}

0 comments on commit f233034

Please sign in to comment.