TokenProvider

interface TokenProvider

Provides a token used to authenticate the user with Stream Chat API. The SDK doesn't refresh the token internally and will call loadToken function once the previous one has expired.

Check out docs for more info about tokens.

Functions

Link copied to clipboard
abstract fun loadToken(): String

Loads the token for the current user. The token will be loaded only if the token was not loaded yet or existing one has expired.