Package-level declarations

Types

Link copied to clipboard
typealias AccessTokenProvider = suspend () -> String?

Optional function for using a third-party authentication system with Supabase. The function should return an access token or ID token (JWT) by obtaining it from the third-party auth client library. Note that this function may be called concurrently and many times. Use memoization and locking techniques if this is not supported by the client libraries.

Link copied to clipboard
Link copied to clipboard
data class OSInformation(val name: String, val version: String)
Link copied to clipboard

Represents a target platform

Link copied to clipboard
interface SupabaseClient

The main class to interact with Supabase.

Link copied to clipboard

Creates a new SupabaseClient with the given options.

Link copied to clipboard

An interface for serializing and deserializing objects. Note: Internally, KotlinX Serialization will always be used.

Properties

Link copied to clipboard

The current target platform

The current target platform

actual val CurrentPlatformTarget: PlatformTarget

The current target platform

actual val CurrentPlatformTarget: PlatformTarget

The current target platform

The current target platform

actual val CurrentPlatformTarget: PlatformTarget

The current target platform

actual val CurrentPlatformTarget: PlatformTarget

The current target platform

actual val CurrentPlatformTarget: PlatformTarget

The current target platform

actual val CurrentPlatformTarget: PlatformTarget

The current target platform

actual val CurrentPlatformTarget: PlatformTarget

The current target platform

actual val CurrentPlatformTarget: PlatformTarget

The current target platform

Link copied to clipboard
actual val defaultDispatcher: CoroutineDispatcher
actual val defaultDispatcher: CoroutineDispatcher
actual val defaultDispatcher: CoroutineDispatcher
actual val defaultDispatcher: CoroutineDispatcher
actual val defaultDispatcher: CoroutineDispatcher
actual val defaultDispatcher: CoroutineDispatcher
actual val defaultDispatcher: CoroutineDispatcher
actual val defaultDispatcher: CoroutineDispatcher
actual val defaultDispatcher: CoroutineDispatcher
actual val defaultDispatcher: CoroutineDispatcher
Link copied to clipboard
val supabaseJson: Json

Functions

Link copied to clipboard
inline suspend fun <T> HttpResponse.bodyOrNull(): T?
Link copied to clipboard
inline fun buildUrl(baseUrl: String, init: URLBuilder.() -> Unit): String
Link copied to clipboard
inline fun createSupabaseClient(supabaseUrl: String, supabaseKey: String, builder: SupabaseClientBuilder.() -> Unit): SupabaseClient

Creates a new SupabaseClient instance using builder

Link copied to clipboard
inline fun <T : Any> SupabaseSerializer.decode(value: String): T

Decodes the given value to an object of type T

Link copied to clipboard
inline fun <T> JsonObject.decodeIfNotEmptyOrDefault(default: T): T
Link copied to clipboard
inline fun <T : Any> SupabaseSerializer.encode(value: T): String

Encodes the given value to a string

Link copied to clipboard
inline fun <T : Any> SupabaseSerializer.encodeToJsonElement(value: T): JsonElement

Encodes the given value to a JsonElement

Link copied to clipboard
fun JsonObjectBuilder.putJsonObject(jsonObject: JsonObject)
Link copied to clipboard
Link copied to clipboard
inline suspend fun <T> HttpResponse.safeBody(context: String? = null): T
Link copied to clipboard
fun String.toJsonObject(): JsonObject