[API Node] Reset password (#3578)

Co-authored-by: github-actions <github-actions@github.com>
This commit is contained in:
Christian Byrne
2025-04-23 22:13:17 +08:00
committed by GitHub
parent 16bd9abccd
commit 59cbe90fd3
9 changed files with 53 additions and 2 deletions

View File

@@ -7,6 +7,7 @@ import {
browserLocalPersistence,
createUserWithEmailAndPassword,
onAuthStateChanged,
sendPasswordResetEmail,
setPersistence,
signInWithEmailAndPassword,
signInWithPopup,
@@ -226,6 +227,11 @@ export const useFirebaseAuthStore = defineStore('firebaseAuth', () => {
const logout = async (): Promise<void> =>
executeAuthAction((authInstance) => signOut(authInstance))
const sendPasswordReset = async (email: string): Promise<void> =>
executeAuthAction((authInstance) =>
sendPasswordResetEmail(authInstance, email)
)
const addCredits = async (
requestBodyContent: CreditPurchasePayload
): Promise<CreditPurchaseResponse | null> => {
@@ -329,6 +335,7 @@ export const useFirebaseAuthStore = defineStore('firebaseAuth', () => {
openSignInPanel,
openCreditsPanel,
fetchBalance,
accessBillingPortal
accessBillingPortal,
sendPasswordReset
}
})