invoke
operator fun <T : KtorClientBasicAuth> T.invoke(username: String, password: String): ScopeInstance<T>
Content copied to clipboard
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>
Content copied to clipboard
Create a bearer auth scope instance by providing the access token and optionally a refresh token.