From 1d9230592fb2ebaaf67ee6fd67a2568501a7dab1 Mon Sep 17 00:00:00 2001 From: Jan Date: Sun, 4 Feb 2024 11:33:12 +0100 Subject: [PATCH 1/2] Add missing OTP type and deprecate old ones --- .../kotlin/io/github/jan/supabase/gotrue/OtpType.kt | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/GoTrue/src/commonMain/kotlin/io/github/jan/supabase/gotrue/OtpType.kt b/GoTrue/src/commonMain/kotlin/io/github/jan/supabase/gotrue/OtpType.kt index a4062e9e..520b6a92 100644 --- a/GoTrue/src/commonMain/kotlin/io/github/jan/supabase/gotrue/OtpType.kt +++ b/GoTrue/src/commonMain/kotlin/io/github/jan/supabase/gotrue/OtpType.kt @@ -16,11 +16,12 @@ sealed interface OtpType { * Email OTP types */ enum class Email(override val type: String): OtpType { - MAGIC_LINK("magiclink"), - SIGNUP("signup"), + @Deprecated("Use OtpType.Email.EMAIL instead", ReplaceWith("OtpType.Email.EMAIL")) MAGIC_LINK("magiclink"), + @Deprecated("Use OtpType.Email.EMAIL instead", ReplaceWith("OtpType.Email.EMAIL")) SIGNUP("signup"), INVITE("invite"), RECOVERY("recovery"), - EMAIL_CHANGE("email_change") + EMAIL_CHANGE("email_change"), + EMAIL("email") } /** From 5704e176dfb88666633821f4c24e817fd78f06a5 Mon Sep 17 00:00:00 2001 From: Jan Date: Sun, 4 Feb 2024 11:34:00 +0100 Subject: [PATCH 2/2] update version --- gradle.properties | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gradle.properties b/gradle.properties index e04fa015..b662aff6 100644 --- a/gradle.properties +++ b/gradle.properties @@ -10,4 +10,4 @@ kotlin.experimental.tryK2=false org.jetbrains.compose.experimental.uikit.enabled=true org.jetbrains.compose.experimental.jscanvas.enabled=true -supabase-version = 2.1.1 +supabase-version = 2.1.2