From 2334701114a4be715a9eae08ff3d9a3fc5116e26 Mon Sep 17 00:00:00 2001 From: Jan Date: Mon, 3 Jun 2024 11:02:32 +0200 Subject: [PATCH] Update docs --- .../io/github/jan/supabase/gotrue/SettingsSessionManager.kt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/GoTrue/src/settingsMain/kotlin/io/github/jan/supabase/gotrue/SettingsSessionManager.kt b/GoTrue/src/settingsMain/kotlin/io/github/jan/supabase/gotrue/SettingsSessionManager.kt index 37bef6bd..e924fa11 100644 --- a/GoTrue/src/settingsMain/kotlin/io/github/jan/supabase/gotrue/SettingsSessionManager.kt +++ b/GoTrue/src/settingsMain/kotlin/io/github/jan/supabase/gotrue/SettingsSessionManager.kt @@ -7,6 +7,7 @@ import io.github.jan.supabase.gotrue.user.UserSession import io.github.jan.supabase.logging.e import kotlinx.serialization.encodeToString import kotlinx.serialization.json.Json +import kotlinx.serialization.json.JsonBuilder private val settingsJson = Json { encodeDefaults = true @@ -17,6 +18,7 @@ private val settingsJson = Json { * * @param settings The [Settings] instance to use. Defaults to [createDefaultSettings]. * @param key The key to use for saving the session. + * @param json The [Json] instance to use for serialization. Defaults to [settingsJson]. **Important: [JsonBuilder.encodeDefaults] must be set to true.** */ class SettingsSessionManager( private val settings: Settings = createDefaultSettings(),