Skip to content

Commit

Permalink
fix: solved missing token claims in context bug
Browse files Browse the repository at this point in the history
  • Loading branch information
ralvarezdev committed Jan 12, 2025
1 parent 6dbde14 commit df50ab5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion http/middleware/auth/middleware.go
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ func (m *Middleware) Authenticate(
}

// Set the token claims to the context
gojwtnethttpctx.SetCtxTokenClaims(r, claims)
r = gojwtnethttpctx.SetCtxTokenClaims(r, claims)

// Call the next handler
next.ServeHTTP(w, r)
Expand Down

0 comments on commit df50ab5

Please sign in to comment.