Skip to content

Commit

Permalink
fix(middleware): jwt use ZValue
Browse files Browse the repository at this point in the history
  • Loading branch information
whatwewant committed Jan 17, 2023
1 parent f5a3755 commit f80f376
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion middleware/jwt.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ func Jwt(secret string, opts ...*jwt.Options) zoox.Middleware {
return func(ctx *zoox.Context) {
authHeader := ctx.Get("Authorization")
if authHeader == "" {
authHeader = ctx.Query().Get("access_token")
authHeader = ctx.Query().Get("access_token").ToString()
}

if authHeader == "" {
Expand Down

0 comments on commit f80f376

Please sign in to comment.