TokenSourceResponse

@Serializable
data class TokenSourceResponse(val serverUrl: String, val participantToken: String, val roomName: String? = null, val participantName: String? = null)

Constructors

Link copied to clipboard
constructor(serverUrl: String, participantToken: String, roomName: String? = null, participantName: String? = null)

Properties

Link copied to clipboard
val participantName: String? = null

The participant name.

Link copied to clipboard

The JWT token used to connect to the room.

Link copied to clipboard
val roomName: String? = null

The room name.

Link copied to clipboard

The server url to connect with the associated participantToken.

Functions

Link copied to clipboard
fun TokenSourceResponse.hasValidToken(tolerance: Duration = 60.seconds, date: Date = Date()): Boolean

Validates whether the JWT token is still valid.