invoke

operator fun <T : KtorClientBasicAuth> T.invoke(username: String, password: String): ScopeInstance<T>

Create a basic auth scope instance by providing the username and password.


operator fun <T : KtorClientBearerTokenAuth> T.invoke(accessToken: String, refreshToken: String? = null): ScopeInstance<T>

Create a bearer auth scope instance by providing the access token and optionally a refresh token.