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
Stringrepresentation of anyPresenceUserDatathat was provided during the signing request.Declaration
Swift
public let userData: String? -
A Base-64 encoded shared secret
Stringused for decryption. (This is only generated for a subscription attempt on an encrypted channel).Declaration
Swift
public let sharedSecret: String?
View on GitHub
AuthenticationToken Structure Reference