authenticatedSupabaseApi

fun SupabaseClient.authenticatedSupabaseApi(baseUrl: String, parseErrorResponse: suspend (response: HttpResponse) -> RestException? = null): AuthenticatedSupabaseApi(source)

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


fun SupabaseClient.authenticatedSupabaseApi(plugin: MainPlugin<*>, defaultRequest: HttpRequestBuilder.() -> Unit? = null): 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, defaultRequest: HttpRequestBuilder.() -> Unit? = null, jwtToken: String? = null): AuthenticatedSupabaseApi(source)

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