diff options
author | Vidhu Kant Sharma <vidhukant@vidhukant.com> | 2025-10-12 23:30:08 +0530 |
---|---|---|
committer | Vidhu Kant Sharma <vidhukant@vidhukant.com> | 2025-10-12 23:30:08 +0530 |
commit | 327a32f563394f92313e4a751515d69d90f4e7f5 (patch) | |
tree | 9b49fd41ac852fa459b623f7fbe7c79aaac24418 /auth/middleware.go | |
parent | 029fe2c7a3532bc3bf435f257cdade240c8f3568 (diff) |
formatted code
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 }) |