From 4a78d5a213eb4660af708552815d15984e570563 Mon Sep 17 00:00:00 2001 From: Simon Lightfoot Date: Fri, 15 May 2020 03:51:30 +0100 Subject: [PATCH] [firebase_auth_web] Add missing confirmPasswordReset function. --- packages/firebase_auth/firebase_auth_web/CHANGELOG.md | 4 ++++ .../firebase_auth_web/lib/firebase_auth_web.dart | 6 ++++++ packages/firebase_auth/firebase_auth_web/pubspec.yaml | 2 +- 3 files changed, 11 insertions(+), 1 deletion(-) diff --git a/packages/firebase_auth/firebase_auth_web/CHANGELOG.md b/packages/firebase_auth/firebase_auth_web/CHANGELOG.md index bb0dd8c671bb..6054079382b1 100644 --- a/packages/firebase_auth/firebase_auth_web/CHANGELOG.md +++ b/packages/firebase_auth/firebase_auth_web/CHANGELOG.md @@ -1,3 +1,7 @@ +## 0.1.2+3 + +* Implement `confirmPasswordReset`. + ## 0.1.2+2 * Make the pedantic dev_dependency explicit. diff --git a/packages/firebase_auth/firebase_auth_web/lib/firebase_auth_web.dart b/packages/firebase_auth/firebase_auth_web/lib/firebase_auth_web.dart index 3ceaa2ef5cb8..181ed1049a6b 100644 --- a/packages/firebase_auth/firebase_auth_web/lib/firebase_auth_web.dart +++ b/packages/firebase_auth/firebase_auth_web/lib/firebase_auth_web.dart @@ -357,4 +357,10 @@ class FirebaseAuthWeb extends FirebaseAuthPlatform { // See https://github.com/flutter/flutter/issues/46021 throw UnimplementedError('verifyPhoneNumber'); } + + Future confirmPasswordReset( + String app, String oobCode, String newPassword) async { + final firebase.Auth auth = _getAuth(app); + await auth.confirmPasswordReset(oobCode, newPassword); + } } diff --git a/packages/firebase_auth/firebase_auth_web/pubspec.yaml b/packages/firebase_auth/firebase_auth_web/pubspec.yaml index aeb024c61075..1c2d46a507b1 100644 --- a/packages/firebase_auth/firebase_auth_web/pubspec.yaml +++ b/packages/firebase_auth/firebase_auth_web/pubspec.yaml @@ -1,7 +1,7 @@ name: firebase_auth_web description: The web implementation of firebase_auth homepage: https://github.com/FirebaseExtended/flutterfire/tree/master/packages/firebase_auth/firebase_auth_web -version: 0.1.2+2 +version: 0.1.2+3 flutter: plugin: