From d38e2b0aecc8b73f50b0411abccb46ea05485b0e Mon Sep 17 00:00:00 2001 From: Shane Vitarana Date: Thu, 23 Mar 2017 13:12:39 -0400 Subject: [PATCH] Updated README with fixed example --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 6cb4f1d..830f70d 100644 --- a/README.md +++ b/README.md @@ -51,7 +51,7 @@ When decoding a JWT, you must supply one or more algorithms and keys. ```swift do { - 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)!)) print(claims) } catch { print("Failed to decode JWT: \(error)")