---
title: "github.com/vapor/jwt 2.0.0-beta.1 Breaking Changes"
description: "What each github.com/vapor/jwt release removed, renamed or changed: 14 breaking changes in 7 versions on Swift Package Index, each with its source."
canonical_url: https://since.dev/packages/swift/github.com/vapor/jwt
last_updated: 2026-12-04
---

# github.com/vapor/jwt breaking changes

github.com/vapor/jwt 2.0.0-beta.1 is its newest release with breaking changes, 2 of them. The first: Removes the different JWT encoding options in github.com/vapor/jwt 2.0.0-beta.1. Every breaking API change we have recorded in github.com/vapor/jwt on Swift Package Index: 14 breaking changes in 7 versions. Below, its 7 versions with breaking changes, newest first, removals and renames first, each with its source.

Updated December 4, 2026

Latest version `5.2.0`, released October 28, 2026. [Source repository](https://github.com/vapor/jwt)

- From [1.0.0](#v-1-0-0) to [2.0.0-beta.1](#v-2-0-0-beta-1): 2 breaking changes in 1 version.
- From [0.3.0](#v-0-3-0) to [2.0.0-beta.1](#v-2-0-0-beta-1): 13 breaking changes in 6 versions.

## github.com/vapor/jwt 2.0.0-beta.1 breaking changes

github.com/vapor/jwt 2.0.0-beta.1: 2 breaking changes.

- **Removed**  

The release removed the choice of encoding options. Code that selects one of them must be updated to the remaining behavior. [github.com](https://github.com/vapor/jwt/releases/tag/2.0.0-beta.1)
- **Behavior changed**  

The release changed the JWT to use bytes. Code that reads or builds JWT values may need to handle the new byte-based format. [github.com](https://github.com/vapor/jwt/releases/tag/2.0.0-beta.1)

## github.com/vapor/jwt 1.0.0 breaking changes

github.com/vapor/jwt 1.0.0: 1 breaking change.

- **Default changed**  

Default settings now use Base64url encoding as defined by RFC 7519. Check any code or external systems that depend on the previous default encoding. [github.com](https://github.com/vapor/jwt/releases/tag/1.0.0)

## github.com/vapor/jwt 0.9.0 breaking changes

github.com/vapor/jwt 0.9.0: 4 breaking changes.

- **Behavior changed** `ExpirationTimeClaim`  

ExpirationTimeClaim now determines the evaluation time when verification runs rather than using a fixed time. Code that relied on the earlier evaluation time may see different results. [github.com](https://github.com/vapor/jwt/releases/tag/0.9.0)
- **Behavior changed** `NotBeforeClaim`  

NotBeforeClaim now determines the evaluation time when verification runs rather than using a fixed time. Code that relied on the earlier evaluation time may see different results. [github.com](https://github.com/vapor/jwt/releases/tag/0.9.0)
- **Configuration changed**  

The package now depends on Vapor 2 Alpha. Users who stay on Vapor 1.0 must keep using tag 0.8. [github.com](https://github.com/vapor/jwt/releases/tag/0.9.0)
- **Signature changed**  

Claim verification no longer returns a boolean and now throws an error when verification fails. Code that checks the return value must catch the error instead. [github.com](https://github.com/vapor/jwt/releases/tag/0.9.0)

## github.com/vapor/jwt 0.7.0 breaking changes

github.com/vapor/jwt 0.7.0: 1 breaking change.

- **Renamed**  

The package is now named JWT, so code that imports or refers to VaporJWT must switch to the new name. [github.com](https://github.com/vapor/jwt/releases/tag/0.7.0)

## github.com/vapor/jwt 0.5.0 breaking changes

github.com/vapor/jwt 0.5.0: 1 breaking change.

- **Signature changed** `init`  

The String-based Signer initializer is now init(encodedKey:encoding:) and throws. Code calling the existing String initializer should move to the encodedKey label and handle the throw; use the new init(key:) for unencoded keys. [github.com](https://github.com/vapor/jwt/releases/tag/0.5.0)

## github.com/vapor/jwt 0.4.0 breaking changes

github.com/vapor/jwt 0.4.0: 4 breaking changes.

- **Behavior changed** `ExpirationClaim`  

The check logic of ExpirationClaim was inverted, so tokens may be accepted or rejected differently than before. [github.com](https://github.com/vapor/jwt/releases/tag/0.4.0)
- **Behavior changed** `NotBeforeClaim`  

The check logic of NotBeforeClaim was inverted, so tokens may be accepted or rejected differently than before. [github.com](https://github.com/vapor/jwt/releases/tag/0.4.0)
- **Signature changed**  

Dates are represented as Ints rather than Doubles, so code that passes or reads Double dates must be updated. [github.com](https://github.com/vapor/jwt/releases/tag/0.4.0)
- **Signature changed**  

The JWT payload now uses Node instead of JSON, so code that builds or reads payloads must be updated. [github.com](https://github.com/vapor/jwt/releases/tag/0.4.0)

## Older versions

1 older version.

### github.com/vapor/jwt 0.3.0 breaking changes

github.com/vapor/jwt 0.3.0: 1 breaking change.

- **Removed**  

The release redesigns the API so creation of tokens can be customized through protocols for signing, encoding, and data storage. Code using the previous API will need to be updated to the new protocol-based interface. [github.com](https://github.com/vapor/jwt/releases/tag/0.3.0)

## Related packages

- [github.com/vapor/async-kit](https://since.dev/packages/swift/github.com/vapor/async-kit.md)
- [github.com/vapor/console-kit](https://since.dev/packages/swift/github.com/vapor/console-kit.md)
- [github.com/vapor/core](https://since.dev/packages/swift/github.com/vapor/core.md)
- [github.com/vapor/fluent](https://since.dev/packages/swift/github.com/vapor/fluent.md)
- [github.com/vapor/fluent-mysql-driver](https://since.dev/packages/swift/github.com/vapor/fluent-mysql-driver.md)
- [github.com/vapor/http](https://since.dev/packages/swift/github.com/vapor/http.md)

## Check your code

These are the changes. To see which of them reach your code, [scan a public repository](https://since.dev/scan.md), or have your coding agent call `check_code` with your manifest or lockfile over [MCP](https://since.dev/docs.md#mcp). [The API](https://since.dev/docs.md#api) reads every change in every version. A fix pull request opens for the changes that reach a connected repository. Nothing merges or deploys.

## Put your code on continuous maintenance.

Scan a public repository now, or give your agent one line.

[Scan a repository](https://since.dev/scan.md). Any public GitHub repository. No sign-in.

### Tell your agent what changed since it was trained.

`claude mcp add --transport http since https://api.since.dev/mcp`

[Get an API key](https://app.since.dev/login?mode=signup)

Codex, Cursor and any MCP client use https://api.since.dev/mcp.

---

Every page on this site as Markdown: https://since.dev/sitemap.md. For agents: https://since.dev/llms.txt.
