Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Listen to auth events #9

Open
lexum0 opened this issue Jan 8, 2025 · 0 comments
Open

Listen to auth events #9

lexum0 opened this issue Jan 8, 2025 · 0 comments

Comments

@lexum0
Copy link

lexum0 commented Jan 8, 2025

I'm trying to implement auth events. Is there some implementation of it?

The test cases have a line commented out
//let _: AsyncStream<(event: AuthChangeEvent, session: Session?)> = ac.authStateChanges
in https://github.com/skiptools/skip-supabase/blob/main/Tests/SkipSupabaseTests/SkipSupabaseTests.swift

The Supabase documentation has a couple of ways to handle it. Which one would be the preferred way to handle auth events with Skip?

Reference

https://supabase.com/docs/reference/swift/auth-onauthstatechange

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant