feat: server tests (#1556)

* feat: server tests

* chore: update
This commit is contained in:
boojack
2023-04-17 21:34:59 +08:00
committed by GitHub
parent e62a94c05a
commit 994d5dd891
7 changed files with 442 additions and 7 deletions

View File

@@ -191,7 +191,6 @@ func JWTMiddleware(server *Server, next echo.HandlerFunc, secret string) echo.Ha
if generateToken {
generateTokenFunc := func() error {
rc, err := c.Cookie(auth.RefreshTokenCookieName)
if err != nil {
return echo.NewHTTPError(http.StatusUnauthorized, "Failed to generate access token. Missing refresh token.")
}