AuthenticationToken
public struct AuthenticationToken : Codable
A token that contains an authentication signature that can be used when users
subscribe to a private or presence Channel
.
The token will contain any userData
that was provided during
the signing request. In the case of encrypted channels, it will also
contain a base-64 encoded sharedSecret
.
-
The authentication signature for the channel subscription attempt.
Declaration
Swift
public let signature: String
-
The
String
representation of anyPresenceUserData
that was provided during the signing request.Declaration
Swift
public let userData: String?
-
A Base-64 encoded shared secret
String
used for decryption. (This is only generated for a subscription attempt on an encrypted channel).Declaration
Swift
public let sharedSecret: String?