Skip to content

Commit

Permalink
Merge pull request #26 from slax0rr/master
Browse files Browse the repository at this point in the history
Truly support jwtauth.Claims when parsing from context
  • Loading branch information
VojtechVitek authored Feb 28, 2018
2 parents fdeab96 + 5080408 commit 53a0a48
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion jwtauth.go
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@ func FromContext(ctx context.Context) (*jwt.Token, Claims, error) {
if token != nil {
switch tokenClaims := token.Claims.(type) {
case Claims:
// Nop.
claims = tokenClaims
case jwt.MapClaims:
claims = Claims(tokenClaims)
default:
Expand Down

0 comments on commit 53a0a48

Please sign in to comment.