Skip to content

Commit af7e4fc

Browse files
committed
Add more debug logs
1 parent d69d7db commit af7e4fc

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

  • Auth/src/commonMain/kotlin/io/github/jan/supabase/auth

Auth/src/commonMain/kotlin/io/github/jan/supabase/auth/AuthImpl.kt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -602,9 +602,11 @@ internal class AuthImpl(
602602
if (status is SessionStatus.NotAuthenticated && sessionStatus.value is SessionStatus.NotAuthenticated) {
603603
val currentReason = (sessionStatus.value as SessionStatus.NotAuthenticated).reason
604604
if (status.reason is NotAuthenticatedReason.SessionNotFound && currentReason is NotAuthenticatedReason.Error) {
605+
Auth.logger.d { "Not setting session status to $status as the current reason is an error: $currentReason" }
605606
return
606607
}
607608
}
609+
Auth.logger.d { "Setting session status to $status" }
608610
_sessionStatus.value = status
609611
}
610612

0 commit comments

Comments
 (0)