We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hi , Im trying to run the refresh token handler and it`s get panic on the converting of
origIat := int64(token.Claims["orig_iat"].(float64))
It look like the claim is nill.
` [GIN-debug] [WARNING] Running in "debug" mode. Switch to "release" mode in production. - using env: export GIN_MODE=release - using code: gin.SetMode(gin.ReleaseMode) [GIN-debug] POST /login --> gopkg.in/appleboy/gin-jwt%2ev1.(*GinJWTMiddleware).LoginHandler-fm (3 handlers) [GIN-debug] GET /auth/hello --> main.HelloHandler (4 handlers) [GIN-debug] GET /auth/refresh_token --> gopkg.in/appleboy/gin-jwt%2ev1.(*GinJWTMiddleware).RefreshHandler-fm (4 handlers) 2947 :8000 �[31m2016/07/04 18:24:56 [Recovery] panic recovered: GET /auth/refresh_token HTTP/1.1 Host: localhost:8000 Accept: */* Accept-Encoding: gzip, deflate, sdch Accept-Language: en-US,en;q=0.8,he;q=0.6 Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJleHAiOjE0Njc2NDg3ODIsImlkIjoiYWRtaW4ifQ.HD_0Lx9UGF3yQMJZCvbPadB7_rKVdtaPD-vIqH4FA-o Cache-Control: no-cache Connection: keep-alive Content-Type: application/json Dnt: 1 Postman-Token: 27f71581-af40-e08a-30d8-ddd81e89247a User-Agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/49.0.2623.87 Safari/537.36 interface conversion: interface is nil, not float64 /usr/local/go/src/runtime/panic.go:423 (0x42a2c9) gopanic: reflectcall(nil, unsafe.Pointer(d.fn), deferArgs(d), uint32(d.siz), uint32(d.siz)) /usr/local/go/src/runtime/iface.go:218 (0x40d3f5) assertE2T: panic(&TypeAssertionError{"", "", *t._string, ""}) /home/mik/go-programes/src/gopkg.in/appleboy/gin-jwt.v1/auth_jwt.go:199 (0x49a81e) (*GinJWTMiddleware).RefreshHandler: origIat := int64(token.Claims["orig_iat"].(float64)) `
The text was updated successfully, but these errors were encountered:
@miko-code I will take it.
Sorry, something went wrong.
4fbdd81
@miko-code Fixed. Please update your package.
No branches or pull requests
Hi ,
Im trying to run the refresh token handler and it`s get panic on the converting of
origIat := int64(token.Claims["orig_iat"].(float64))
It look like the claim is nill.
The text was updated successfully, but these errors were encountered: