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
}