Skip to content

Commit

Permalink
Fix example
Browse files Browse the repository at this point in the history
  • Loading branch information
lestrrat committed Apr 24, 2019
1 parent f5d7572 commit c9557ef
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions jwx_example_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,12 +31,12 @@ func ExampleJWT() {
}

fmt.Printf("%s\n", buf)
fmt.Printf("aud -> '%s'\n", t.GetAudience())
fmt.Printf("iat -> '%s'\n", t.GetIssuedAt().Format(time.RFC3339))
fmt.Printf("aud -> '%s'\n", t.Audience())
fmt.Printf("iat -> '%s'\n", t.IssuedAt().Format(time.RFC3339))
if v, ok := t.Get(`privateClaimKey`); ok {
fmt.Printf("privateClaimKey -> '%s'\n", v)
}
fmt.Printf("sub -> '%s'\n", t.GetSubject())
fmt.Printf("sub -> '%s'\n", t.Subject())
}

func ExampleJWK() {
Expand Down

0 comments on commit c9557ef

Please sign in to comment.