diff options
author | Vidhu Kant Sharma <vidhukant@vidhukant.com> | 2023-10-04 21:33:42 +0530 |
---|---|---|
committer | Vidhu Kant Sharma <vidhukant@vidhukant.com> | 2023-10-04 21:33:42 +0530 |
commit | d8c1d5fedfac65a79490120195e273b5d5fc75e9 (patch) | |
tree | 7b2b4c6042c693cdd4c827ea9989cfc1bd82ca5d /auth/middleware.go | |
parent | a0613bfd790b27f313470bddc08371bcbf54968d (diff) |
added basic token refreshingv0.0.10
Diffstat (limited to 'auth/middleware.go')
-rw-r--r-- | auth/middleware.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/auth/middleware.go b/auth/middleware.go index 299a7be..9a065d5 100644 --- a/auth/middleware.go +++ b/auth/middleware.go @@ -47,7 +47,7 @@ func Authorize() gin.HandlerFunc { return } - tk, err := 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 }) |