From 7df41903ab1ac6574b4111bfc845c5707d55d975 Mon Sep 17 00:00:00 2001 From: Jan Tennert Date: Fri, 20 Sep 2024 10:17:29 +0200 Subject: [PATCH] Fix detekt --- .../io/github/jan/supabase/auth/status/RefreshFailureCause.kt | 2 ++ .../kotlin/io/github/jan/supabase/auth/status/SessionStatus.kt | 1 + 2 files changed, 3 insertions(+) diff --git a/Auth/src/commonMain/kotlin/io/github/jan/supabase/auth/status/RefreshFailureCause.kt b/Auth/src/commonMain/kotlin/io/github/jan/supabase/auth/status/RefreshFailureCause.kt index 856e93ba..63aa3cca 100644 --- a/Auth/src/commonMain/kotlin/io/github/jan/supabase/auth/status/RefreshFailureCause.kt +++ b/Auth/src/commonMain/kotlin/io/github/jan/supabase/auth/status/RefreshFailureCause.kt @@ -9,11 +9,13 @@ sealed interface RefreshFailureCause { /** * The refresh failed due to a network error + * @param exception The exception that caused the error */ data class NetworkError(val exception: Throwable) : RefreshFailureCause /** * The refresh failed due to an internal server error + * @param exception The rest exception that caused the error */ data class InternalServerError(val exception: RestException) : RefreshFailureCause diff --git a/Auth/src/commonMain/kotlin/io/github/jan/supabase/auth/status/SessionStatus.kt b/Auth/src/commonMain/kotlin/io/github/jan/supabase/auth/status/SessionStatus.kt index 44097535..76ac7fb5 100644 --- a/Auth/src/commonMain/kotlin/io/github/jan/supabase/auth/status/SessionStatus.kt +++ b/Auth/src/commonMain/kotlin/io/github/jan/supabase/auth/status/SessionStatus.kt @@ -21,6 +21,7 @@ sealed interface SessionStatus { /** * This status means that [Auth] had an error while refreshing the session + * @param cause The cause of the error */ data class RefreshFailure(val cause: RefreshFailureCause) : SessionStatus