diff options
Diffstat (limited to 'auth/middleware.go')
-rw-r--r-- | auth/middleware.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/auth/middleware.go b/auth/middleware.go index 80e512e..e587681 100644 --- a/auth/middleware.go +++ b/auth/middleware.go @@ -18,11 +18,11 @@ package auth import ( - "vidhukant.com/openbills/errors" "github.com/gin-gonic/gin" "github.com/golang-jwt/jwt/v5" "strings" "time" + "vidhukant.com/openbills/errors" ) func getBearerToken(header []string) (string, error) { @@ -47,7 +47,7 @@ func Authorize() gin.HandlerFunc { return } - tk, _ := jwt.ParseWithClaims(bearerToken, &AuthClaims{}, func (token *jwt.Token) (interface{}, error) { + tk, _ := jwt.ParseWithClaims(bearerToken, &AuthClaims{}, func(token *jwt.Token) (interface{}, error) { return []byte(AUTH_KEY), nil }) |