Skip to content

Commit c61cdc9

Browse files
shanevkylef
authored andcommitted
Updated README with fixed example (#64)
1 parent b605fe2 commit c61cdc9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ When decoding a JWT, you must supply one or more algorithms and keys.
5151

5252
```swift
5353
do {
54-
let claims = try JWT.decode("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.e30.2_8pWJfyPup0YwOXK7g9Dn0cF1E3pdn299t4hSeJy5w", algorithm: .hs256("secret".data(using: .utf8)!))
54+
let claims: ClaimSet = try JWT.decode("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.e30.2_8pWJfyPup0YwOXK7g9Dn0cF1E3pdn299t4hSeJy5w", algorithm: .hs256("secret".data(using: .utf8)!))
5555
print(claims)
5656
} catch {
5757
print("Failed to decode JWT: \(error)")

0 commit comments

Comments
 (0)