MainPlugin

Represents main plugins like Auth or Functions

Properties

Link copied to clipboard
abstract val apiVersion: Int

The version for the api the plugin is using

Link copied to clipboard
abstract val config: Config

The config for this plugin

Link copied to clipboard
abstract val pluginKey: String

The unique key for this plugin

Link copied to clipboard

The corresponding SupabaseClient

Functions

Link copied to clipboard
open suspend fun close()

Free all resources used by this plugin

Link copied to clipboard
open fun init()

Initialize the plugin. Use this function, if you want to execute code after the plugin has been created but also have to access other plugins.

Link copied to clipboard
abstract suspend fun parseErrorResponse(response: HttpResponse): RestException

Parses the response from the server and builds a RestException

Link copied to clipboard
open fun resolveUrl(path: String = ""): String

Gets the auth url from either MainConfig.customUrl or SupabaseClient.supabaseHttpUrl and adds path to it