Skip to content

Commit 62a2521

Browse files
committed
Increase session token JWT leeway
1 parent 878df33 commit 62a2521

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

CHANGELOG.md

+2
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@ Note: For changes to the API, see https://shopify.dev/changelog?filter=api
44

55
## Unreleased
66

7+
- [#](https://github.com/Shopify/shopify-api-ruby/pull/) Increase session token JWT validation leeway from 5s to 10s
8+
79
## Version 11.1.0
810

911
- [#1002](https://github.com/Shopify/shopify-api-ruby/pull/1002) Add new method to construct the host app URL for an embedded app, allowing for safer redirect to app inside appropriate shop admin

lib/shopify_api/auth/jwt_payload.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ module Auth
66
class JwtPayload
77
extend T::Sig
88

9-
JWT_EXPIRATION_LEEWAY = 5
9+
JWT_EXPIRATION_LEEWAY = 10
1010

1111
sig { returns(String) }
1212
attr_reader :iss, :dest, :aud, :sub, :jti, :sid

0 commit comments

Comments
 (0)