OAuth2MatrixClientAuthProviderData

@Serializable
data class OAuth2MatrixClientAuthProviderData(val baseUrl: Url, val accessToken: String, val accessTokenExpiresInS: Long?, val refreshToken: String?, val clientId: String, val scope: Set<Scope>?) : MatrixClientAuthProviderData, BearerTokens

Constructors

Link copied to clipboard
constructor(baseUrl: Url, accessToken: String, accessTokenExpiresInS: Long?, refreshToken: String?, clientId: String, scope: Set<Scope>?)

Properties

Link copied to clipboard
open override val accessToken: String
Link copied to clipboard
Link copied to clipboard
open override val baseUrl: Url
Link copied to clipboard
Link copied to clipboard
open override val refreshToken: String?
Link copied to clipboard
val scope: Set<Scope>?

Functions

Link copied to clipboard
open override fun createAuthProvider(store: MatrixClientAuthProviderDataStore, onLogout: suspend (LogoutInfo) -> Unit, httpClientEngine: HttpClientEngine?, httpClientConfig: HttpClientConfig<*>.() -> Unit?): MatrixClientAuthProvider
Link copied to clipboard
open override fun toString(): String
Link copied to clipboard
suspend fun <T> MatrixClientAuthProviderData.useApi(eventContentSerializerMappings: EventContentSerializerMappings = EventContentSerializerMappings.default, json: Json = createMatrixEventJson(eventContentSerializerMappings), syncBatchTokenStore: SyncBatchTokenStore = SyncBatchTokenStore.inMemory(), syncErrorDelayConfig: RetryFlowDelayConfig = RetryFlowDelayConfig.sync, coroutineContext: CoroutineContext = Dispatchers.Default, httpClientEngine: HttpClientEngine? = null, httpClientConfig: HttpClientConfig<*>.() -> Unit? = null, block: suspend (MatrixClientServerApiClient) -> T): T