And this is how it was used: ```class Auth(client...
# android
j
And this is how it was used:
Copy code
class Auth(client: IApiClient) : Logger {
    private val authApi: IAuth = client.retrofit.create(IAuth::class.java)
    ...

    suspend fun requestToken(code: String): TokenResponse {
        try {
            return authApi.token(code).await()
        } catch (e: IllegalStateException) {
            error("Error from platform:", e)
            return TokenResponse(TokenResponse.Payload(), false)
        }
    }
}