We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 259ec46 commit f047d77Copy full SHA for f047d77
lib/shopify_api/auth/jwt_payload.rb
@@ -42,10 +42,14 @@ def shop
42
@dest.gsub("https://", "")
43
end
44
45
+ # TODO: Remove before releasing v11
46
sig { params(shop: String).returns(T::Boolean) }
47
def validate_shop(shop)
- puts "Deprecation notice: validate_shop will be removed in the next major release."
48
- /\A[a-z0-9]+[a-z0-9\-\.]*[a-z0-9]+\.(myshopify\.(io|com)|spin\.dev)\z/.match?(shop)
+ Context.logger.warn(
49
+ "Deprecation notice: ShopifyAPI::Auth::JwtPayload.validate_shop no longer checks the given shop and always " \
50
+ "returns true. It will be removed in v11."
51
+ )
52
+ true
53
54
55
alias_method :eql?, :==
0 commit comments