buildToken

fun buildToken(userId: String): TokenBuilder

Returns a TokenBuilder that can be used to create a Streem Token.

This method is optimized for use from Java code. For Kotlin code, prefer the buildToken method that takes a builder lambda.

Parameters

userId

The user ID of the user to authenticate with this token.


fun buildToken(userId: String, builder: StreemToken.() -> Unit): String

Returns a string representation of a Streem Token configured with builder.

This method is optimized for use from Kotlin code. For Java code, prefer the buildToken method that returns a TokenBuilder.

Parameters

userId

The user ID of the user to authenticate with this token.