getAuthToken

suspend fun AccessTokenData.getAuthToken(tmAuthentication: TMAuthentication?, isMFXMarket: Boolean): String

Retrieves an authentication token for the specified market.

Return

The access token as a String, or an empty string if no token is available.

Parameters

tmAuthentication

The authentication instance used to retrieve the token, or null if unavailable.

isMFXMarket

Indicates whether to fetch the token for the MFX market (true) or the HOST market (false).