Skip to content

Stytch

Interface for Stytch, letting you easily manage identity.

Install kairo-stytch-feature. You don’t need to install the Stytch SDK separately — it’s included by default.

build.gradle.kts
dependencies {
implementation("software.airborne.kairo:kairo-stytch-feature")
}

First, add the Feature to your Server.

val features = listOf(
StytchFeature(config.stytch),
)

We recommend using kairo-config to configure the Feature.

stytch {
projectId = "project-live-00000000-abcd-1234-wxyz-000000000000"
secret = ${STYTCH_SECRET}
}

Now you can interact with Stytch in your code.

val stytch: Stytch // Inject this.
stytch.users.create(...)