grantToken

abstract fun grantToken(ttl: Int): GrantTokenBuilder

This function generates a grant token for PubNub Access Manager (PAM).

Permissions can be applied to any of the three type of resources:

  • channels

  • channel groups

  • uuid - metadata associated with particular UUID

Each type of resource have different set of permissions. To know what's possible for each of them check ChannelGrant, ChannelGroupGrant and UUIDGrant.


Deprecated

Use grantToken(ttl) instead

Replace with

grantToken(ttl)

This function generates a grant token for PubNub Access Manager (PAM).

Permissions can be applied to any of the three type of resources:

  • channels

  • channel groups

  • uuid - metadata associated with particular UUID

Each type of resource have different set of permissions. To know what's possible for each of them check ChannelGrant, ChannelGroupGrant and UUIDGrant.