authenticatedSupabaseApi

fun SupabaseClient.authenticatedSupabaseApi(baseUrl: String, parseErrorResponse: suspend (response: HttpResponse) -> RestException? = null, config: AuthenticatedApiConfig): 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): 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)

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