Swift: Listen to auth events

Examples

Listen to auth changes

for await (event, session) in await supabase.auth.authStateChanges \{
  print(event, session)
\}

Listen to a specific event

for await (_, session) in await supabase.auth.authStateChanges.filter(\{ $0.event == .signedIn \}) \{
  // handle signIn event.
\}