Skip to content

Commit c8e4a92

Browse files
author
Gabriel Sanches
committed
Update example in README
1 parent 333e196 commit c8e4a92

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

README.md

+3-1
Original file line numberDiff line numberDiff line change
@@ -130,9 +130,11 @@ var (
130130
h jwt.Header
131131
p CustomPayload
132132
)
133-
if err = raw.Decode(&h, &p); err != nil {
133+
if h, err = raw.Decode(&p); err != nil {
134134
// Handle error.
135135
}
136+
fmt.Println(h.Algorithm)
137+
fmt.Println(h.KeyID)
136138

137139
iatValidator := jwt.IssuedAtValidator(now)
138140
expValidator := jwt.ExpirationTimeValidator(now, true)

0 commit comments

Comments
 (0)