Kotlin: Listen to auth events

Listen to session changes.

Examples

Listen to auth changes

supabase.gotrue.sessionStatus.collect \{
    when(it) \{
        is SessionStatus.Authenticated -> println(it.session.user)
        SessionStatus.LoadingFromStorage -> println("Loading from storage")
        SessionStatus.NetworkError -> println("Network error")
        SessionStatus.NotAuthenticated -> println("Not authenticated")
    \}
\}