fix type
This commit is contained in:
parent
2b39d32799
commit
a3039a8cc7
@ -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
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user