Skip to content

Commit

Permalink
Deprecation of Access Manager v2 (#197)
Browse files Browse the repository at this point in the history
  • Loading branch information
seba-aln authored Sep 30, 2024
1 parent e556b7f commit 16f9086
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pubnub/pubnub_core.py
Original file line number Diff line number Diff line change
Expand Up @@ -209,6 +209,8 @@ def publish(self):
return Publish(self)

def grant(self):
warn("This method will stop working on 31th December 2024. We recommend that you use grant_token() instead.",
DeprecationWarning, stacklevel=2)
return Grant(self)

def grant_token(self):
Expand All @@ -218,6 +220,7 @@ def revoke_token(self, token):
return RevokeToken(self, token)

def audit(self):
warn("This method will stop working on 31th December 2024.", DeprecationWarning, stacklevel=2)
return Audit(self)

# Push Related methods
Expand Down

0 comments on commit 16f9086

Please sign in to comment.