We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b605fe2 commit c61cdc9Copy full SHA for c61cdc9
README.md
@@ -51,7 +51,7 @@ When decoding a JWT, you must supply one or more algorithms and keys.
51
52
```swift
53
do {
54
- let claims = try JWT.decode("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.e30.2_8pWJfyPup0YwOXK7g9Dn0cF1E3pdn299t4hSeJy5w", algorithm: .hs256("secret".data(using: .utf8)!))
+ let claims: ClaimSet = try JWT.decode("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.e30.2_8pWJfyPup0YwOXK7g9Dn0cF1E3pdn299t4hSeJy5w", algorithm: .hs256("secret".data(using: .utf8)!))
55
print(claims)
56
} catch {
57
print("Failed to decode JWT: \(error)")
0 commit comments