Skip to content

Commit

Permalink
Update docs
Browse files Browse the repository at this point in the history
  • Loading branch information
jan-tennert committed Jun 3, 2024
1 parent 6d053a7 commit 2334701
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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(),
Expand Down

0 comments on commit 2334701

Please sign in to comment.