Skip to content

1.2.0

Compare
Choose a tag to compare
@kylef kylef released this 05 Apr 23:37
· 134 commits to master since this release

Introduces a new builder pattern for creating payloads when creating a JWT.

JWT.encode(.HS256("secret")) { builder in
  builder.issuer = "fuller.li"
  builder.issuedAt = NSDate()
  builder["custom"] = "Hi"
}