From 3f22f1d4c7d7feff663297c044f86bd0c5b90d81 Mon Sep 17 00:00:00 2001 From: Nathan Booker Date: Sun, 20 Jun 2021 17:14:13 -0500 Subject: [PATCH] Add class method for JWT payload and release 0.22.1 --- bigcommerce/api.py | 4 ++++ setup.py | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/bigcommerce/api.py b/bigcommerce/api.py index 057a4d3..f36e265 100644 --- a/bigcommerce/api.py +++ b/bigcommerce/api.py @@ -27,6 +27,10 @@ def oauth_fetch_token(self, client_secret, code, context, scope, redirect_uri): def oauth_verify_payload(cls, signed_payload, client_secret): return connection.OAuthConnection.verify_payload(signed_payload, client_secret) + @classmethod + def oauth_verify_payload_jwt(cls, signed_payload, client_secret): + return connection.OAuthConnection.verify_payload_jwt(signed_payload, client_secret) + def __getattr__(self, item): return ApiResourceWrapper(item, self) diff --git a/setup.py b/setup.py index 7c5b889..566f342 100644 --- a/setup.py +++ b/setup.py @@ -7,7 +7,7 @@ def read(fname): return open(os.path.join(os.path.dirname(__file__), fname)).read() -VERSION = '0.22.0' +VERSION = '0.22.1' setup( name='bigcommerce',