Skip to content

Commit 392fc14

Browse files
chore: add password recovery func
1 parent 6bf0308 commit 392fc14

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

FirebaseSwiftUI/FirebaseAuthSwiftUI/Sources/FirebaseAuthSwiftUI/Services/EmailPasswordAuthProvider.swift

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,4 +24,12 @@ public class EmailPasswordAuthProvider {
2424
throw error
2525
}
2626
}
27+
28+
func sendPasswordRecoveryEmail(withEmail email: String) async throws {
29+
do {
30+
try await authEnvironment.auth.sendPasswordReset(withEmail: email)
31+
} catch {
32+
throw error
33+
}
34+
}
2735
}

0 commit comments

Comments
 (0)