Skip to content
This repository has been archived by the owner on Apr 22, 2024. It is now read-only.

Commit

Permalink
Merge pull request #21 from blrn/master
Browse files Browse the repository at this point in the history
Encode header fields in lowercase
  • Loading branch information
robbert229 committed Nov 8, 2018
2 parents 2b6c09e + 441b0fe commit 5d9a261
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions jwt.go
@@ -1,9 +1,9 @@
// Package jwt is a barebones JWT implementation that supports just the bare necessities.
package jwt

// Header containins important information for encrypting / decryting
// Header contains important information for encrypting / decrypting
type Header struct {
Typ string // Token Type
Alg string // Message Authentication Code Algorithm - The issuer can freely set an algorithm to verify the signature on the token. However, some asymmetrical algorithms pose security concerns
Cty string // Content Type - This claim should always be JWT
Typ string `json:"typ"` // Token Type
Alg string `json:"alg"` // Message Authentication Code Algorithm - The issuer can freely set an algorithm to verify the signature on the token. However, some asymmetrical algorithms pose security concerns
Cty string `json:"cty"` // Content Type - This claim should always be JWT
}

0 comments on commit 5d9a261

Please sign in to comment.