aboutsummaryrefslogtreecommitdiff
path: root/auth/middleware.go
diff options
context:
space:
mode:
authorVidhu Kant Sharma <vidhukant@vidhukant.com>2023-10-04 21:33:42 +0530
committerVidhu Kant Sharma <vidhukant@vidhukant.com>2023-10-04 21:33:42 +0530
commitd8c1d5fedfac65a79490120195e273b5d5fc75e9 (patch)
tree7b2b4c6042c693cdd4c827ea9989cfc1bd82ca5d /auth/middleware.go
parenta0613bfd790b27f313470bddc08371bcbf54968d (diff)
added basic token refreshingv0.0.10
Diffstat (limited to 'auth/middleware.go')
-rw-r--r--auth/middleware.go2
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
})