onAuthStateChange kezeletlen hiba módosítása, rögzítése
This commit is contained in:
@@ -40,6 +40,18 @@ Future<void> main() async {
|
||||
};
|
||||
|
||||
PlatformDispatcher.instance.onError = (error, stack) {
|
||||
// A Supabase session-automata frissítése saját háttér-időzítővel fut;
|
||||
// terepen, jel nélkül ez RENDSZERESEN SocketException/
|
||||
// AuthRetryableFetchException-nel száll el — ez NEM app-összeomlás,
|
||||
// a GoTrue a következő ciklusban magától újrapróbálja. A saját,
|
||||
// explicit bejelentkezési hívásainkat már helyben elkapjuk
|
||||
// (AuthService.signInWithGoogle), ezért ide csak ez az ártalmatlan,
|
||||
// háttér-eredetű eset juthat el — nem fatal-ként rögzítjük, hogy ne
|
||||
// torzítsa a crash-free arányt és ne riasszon feleslegesen.
|
||||
if (error is AuthException) {
|
||||
FirebaseCrashlytics.instance.recordError(error, stack, fatal: false);
|
||||
return true;
|
||||
}
|
||||
FirebaseCrashlytics.instance.recordError(error, stack, fatal: true);
|
||||
return true;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user