Skip to content

Commit d9a419a

Browse files
authored
docs: Always force unwrap the known valid UTF8 key
Closes #101
1 parent b7188dc commit d9a419a

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
@@ -34,7 +34,7 @@ claims.issuer = "fuller.li"
3434
claims.issuedAt = Date()
3535
claims["custom"] = "Hi"
3636

37-
JWT.encode(claims: claims, algorithm: .hs256("secret".data(using: .utf8)))
37+
JWT.encode(claims: claims, algorithm: .hs256("secret".data(using: .utf8)!))
3838
```
3939

4040
#### Building a JWT with the builder pattern

0 commit comments

Comments
 (0)