Skip to content

Commit

Permalink
Add class method for JWT payload and release 0.22.1
Browse files Browse the repository at this point in the history
  • Loading branch information
bookernath committed Jun 20, 2021
1 parent fd969b2 commit 3f22f1d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions bigcommerce/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down

0 comments on commit 3f22f1d

Please sign in to comment.