Skip to content

Commit f158911

Browse files
remove spaces
1 parent 40d3b67 commit f158911

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

middlewares/auth.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,11 +78,11 @@ func verifyToken(tokenString string, secret string) (models.AuthSchema, error) {
7878
}
7979
}
8080
} else {
81+
// for backward compatability
8182
user = models.AuthSchema{
8283
TokenExpiryMins: int(claims["exp"].(float64)),
8384
}
8485
}
85-
8686
return user, nil
8787
}
8888

@@ -116,7 +116,6 @@ func Authenticate(c *fiber.Ctx) error {
116116
"message": "Unauthorized",
117117
})
118118
}
119-
120119
} else if path == "/auth/refreshtoken" {
121120
var body models.RefreshTokenSchema
122121
if err := c.BodyParser(&body); err != nil {

0 commit comments

Comments
 (0)