All Downloads are FREE. Search and download functionalities are using the official Maven repository.

commonMain.com.supertokens.sdk.recipes.Recipe.kt Maven / Gradle / Ivy

The newest version!
package com.supertokens.sdk.recipes

import com.supertokens.sdk.SuperTokensClient
import io.ktor.client.HttpClientConfig

interface RecipeConfig

interface Recipe {

  suspend fun postInit() {}

  fun HttpClientConfig<*>.configureClient() {}
}

typealias BuildRecipe = (SuperTokensClient) -> Recipe<*>

abstract class RecipeBuilder> {

  abstract fun install(configure: C.() -> Unit): BuildRecipe
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy