authenticatedSupabaseApi

fun SupabaseClient.authenticatedSupabaseApi(baseUrl: String, parseErrorResponse: suspend (response: HttpResponse) -> RestException? = null, config: AuthenticatedApiConfig): AuthenticatedSupabaseApi(source)
fun SupabaseClient.authenticatedSupabaseApi(baseUrl: String, parseErrorResponse: suspend (response: HttpResponse) -> RestException? = null, requireSession: Boolean, configure: AuthenticatedApiConfig.Builder.() -> Unit): AuthenticatedSupabaseApi(source)

Creates a AuthenticatedSupabaseApi with the given baseUrl. Requires Auth to authenticate requests. All requests will be resolved relative to this url.


fun <C : MainConfig, AuthDependentPluginConfig> SupabaseClient.authenticatedSupabaseApi(plugin: MainPlugin<C>, defaultRequest: HttpRequestBuilder.() -> Unit? = null, requireSession: Boolean = plugin.config.requireValidSession, urlLengthLimit: Int? = null): AuthenticatedSupabaseApi(source)
fun <C : MainConfig, AuthDependentPluginConfig> SupabaseClient.authenticatedSupabaseApi(plugin: MainPlugin<C>, requireSession: Boolean = plugin.config.requireValidSession, configure: AuthenticatedApiConfig.Builder.() -> Unit): AuthenticatedSupabaseApi(source)

Creates a AuthenticatedSupabaseApi for the given plugin. Requires Auth to authenticate requests. All requests will be resolved using the MainPlugin.resolveUrl function.


fun SupabaseClient.authenticatedSupabaseApi(resolveUrl: (path: String) -> String, parseErrorResponse: suspend (response: HttpResponse) -> RestException? = null, config: AuthenticatedApiConfig): AuthenticatedSupabaseApi(source)
fun SupabaseClient.authenticatedSupabaseApi(resolveUrl: (path: String) -> String, parseErrorResponse: suspend (response: HttpResponse) -> RestException? = null, requireSession: Boolean, configure: AuthenticatedApiConfig.Builder.() -> Unit): AuthenticatedSupabaseApi(source)

Creates a AuthenticatedSupabaseApi with the given resolveUrl function. Requires Auth to authenticate requests. All requests will be resolved using this function.