buildToken

final TokenBuilder buildToken(String userId)

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.


final String buildToken(String userId, Function1<StreemToken, Unit> builder)

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.