Skip to content

Commit

Permalink
Add more detail for JWT migration docs
Browse files Browse the repository at this point in the history
  • Loading branch information
zzooeeyy committed Apr 24, 2024
1 parent 3780621 commit d05d855
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion docs/Upgrading.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,9 @@ for more information.

#### (v23.0.0) - Deprecated "ShopifyApp::JWT" class
The `ShopifyApp::JWT` class has been deprecated in `v23.0.0`. Use [ShopifyAPI::Auth::JwtPayload](https://github.com/Shopify/shopify-api-ruby/blob/main/lib/shopify_api/auth/jwt_payload.rb)
class from the `shopify_api` gem instead.
class from the `shopify_api` gem instead. A search and replace should be enough for this migration.
- `ShopifyAPI::Auth::JwtPayload` is a superset of the `ShopifyApp::JWT` class, and contains methods that were available in `ShopifyApp::JWT`.
- `ShopifyAPI::Auth::JwtPayload` raises `ShopifyAPI::Errors::InvalidJwtTokenError` if the token is invalid.

## Upgrading to `v22.0.0`
#### Dropped support for Ruby 2.x
Expand Down

0 comments on commit d05d855

Please sign in to comment.