Skip to content

Commit

Permalink
Deprecated grant method in Java API.
Browse files Browse the repository at this point in the history
  • Loading branch information
marcin-cebo committed Feb 24, 2025
1 parent 3b7aa64 commit 6d5578f
Showing 1 changed file with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -257,6 +257,13 @@ interface PubNub : EventEmitter, StatusEmitter {
* - Channel level privileges are based on a combination of `subscribeKey` and `channel` name.
* - User level privileges are based on the combination of `subscribeKey`, `channel`, and `auth_key`.
*/
@Deprecated(
level = DeprecationLevel.WARNING,
message = "This function is deprecated. Use the grantToken(ttl)",
replaceWith = ReplaceWith(
"grantToken(ttl)"
)
)
fun grant(): Grant

/**
Expand Down

0 comments on commit 6d5578f

Please sign in to comment.