Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* demonstrate that we cannot capture FirebaseError * update example for testing * fix(auth, web): get `FirebaseAuthError` from `NativeError` instance * fix(auth, web): pass correct properties to FirebaseAuthException * chore: remove print() * Discard changes to packages/firebase_auth/firebase_auth/example/lib/main.dart * chore: format * chore: rm annotation * chore: make dynamic type Object * chore: make AuthErrorCustomData class * chore: use AuthErrorCustomData class, update AuthError condition logic * fix: use firebase Error code * fix: use AuthError for interop * format * chore: update code comment * fix: use window_interop.dart file to check Error constructor
- Loading branch information
1 parent
199e1fc
commit b95c380
Showing
4 changed files
with
70 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
11 changes: 11 additions & 0 deletions
11
packages/firebase_auth/firebase_auth_web/lib/src/interop/window_interop.dart
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
// Copyright 2023 The Chromium Authors. All rights reserved. | ||
// Use of this source code is governed by a BSD-style license that can be | ||
// found in the LICENSE file. | ||
|
||
@JS() | ||
library window_interop; | ||
|
||
import 'package:js/js.dart'; | ||
|
||
@JS('Error') | ||
external Object get errorConstructor; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters