This commit is contained in:
nochill 2023-09-08 12:37:39 +07:00
parent 2b39d32799
commit a3039a8cc7

View File

@ -60,7 +60,7 @@ func (server *Server) renewAccessToken(ctx *gin.Context) {
} }
if time.Now().After(refreshPayload.ExpiredAt) { if time.Now().After(refreshPayload.ExpiredAt) {
err := fmt.Errorf("Exprired session") err := fmt.Errorf("Expired session")
ctx.JSON(http.StatusUnauthorized, errorResponse(err, "")) ctx.JSON(http.StatusUnauthorized, errorResponse(err, ""))
return return
} }