auth.onAuthStateChange()

监听认证相关事件

final subscription = supabase.auth.onAuthStateChange((event, session) {
  print(session?.user?.id);
  // handle auth state change
});

Examples

监听认证相关事件

final subscription = supabase.auth.onAuthStateChange((event, session) {
  print(session?.user?.id);
  // handle auth state change
});

results matching ""

    No results matching ""