Skip to content

[firebase_auth_web] _FirebaseErrorWrapper Exception instead of PlatformException when providing wrong password  #2866

@xkxeeshankhan

Description

@xkxeeshankhan

Flutter for Web, in case of Firebase auth throw _FirebaseErrorWrapper exception instead of PlatformException, so for that we have to use a catch block to handle different scenarios to handle all kind of exception thrown by Firebase auth

SOLUTION
Please change _FirebaseErrorWrapper to PlatformException so its matched the Flutter for Mobile exception handling and are easier to maintain

Error message
The exception that I received is like this:
FirebaseError: The password is invalid or the user does not have a password. (auth/wrong-password)
Type: _FirebaseErrorWrapper

Version:
firebase_auth: ^0.16.0
Scripts:

<script src="https://www.gstatic.com/firebasejs/7.15.1/firebase-app.js"></script> <script src="https://www.gstatic.com/firebasejs/7.15.1/firebase-auth.js"></script>

Metadata

Metadata

Assignees

No one assigned

    Labels

    blocked: customer-responseWaiting for customer response, e.g. more information was requested.platform: webIssues / PRs which are specifically for web.plugin: authresolution: needs-reproThis issue could not be reproduced or needs an up to date reproduction on latest FlutterFire plugin.type: bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions