From 51b669b4f11f6b2877cd2268caec5a4994a781fe Mon Sep 17 00:00:00 2001 From: Soumik Dutta <78898665+shalearkane@users.noreply.github.com> Date: Sun, 28 Jan 2024 22:52:57 +0530 Subject: [PATCH] Update Status Code when verification fails --- handler/verify.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/handler/verify.go b/handler/verify.go index dac7830..f2758f0 100644 --- a/handler/verify.go +++ b/handler/verify.go @@ -27,7 +27,7 @@ func (h *Handler) HandlerVerifyStudentIdToken(ctx *gin.Context) { if h.Config.Mode == MIDDLEWARE { h.Session.Student = student } else { - ctx.JSON(200, gin.H{ + ctx.JSON(400, gin.H{ "data": student, "error": err, "expire": exp,