Closed
Description
Improve documentation
Link
https://github.com/supabase-community/supabase-swift
Describe the problem
Missing inside of Readme
Describe the improvement
Please add an explanation on how to check for auth using onAuthEventChange:
self.client = SupabaseClient(..)
client.auth.authEventchange ...
Also, is there a way on the client to check users state, is signed in?
Additional context
Was going through your repo you shared @grdsdev https://github.com/grdsdev/product-sample-supabase-swift/blob/main/ProductSample/Data/AuthenticationRepository.swift
Would it be ok to use the auth code in that app in a production app?
I saw the code you had was a bit different in terms of API usage:
onAuthStateChange instead of authEventChange. In my project it can't find authStateChange on the Supabase client
await client.onAuthStateChange().compactMap ...