Leitfaden
Anleitung zum Firebase-Authentifizierung
Verwendung von @capgo/capacitor-firebase-authentifizierung
Capacitor-Plugin für Firebase-Authentifizierung
Installieren
bun add @capgo/capacitor-firebase-authentication
bunx cap sync
Wie diese Erweiterung Funktionen bereitstellt
applyActionCode- Wird eine Bestätigung code an, die dem Benutzer per E-Mail gesendet wurde.confirmPasswordReset- Abschließt den Passwortschutzprozess.confirmVerificationCode- Beendet den Telefonnummernbestätigungsprozess.createUserWithEmailAndPassword- Erstellt ein neues Benutzerkonto mit E-Mail-Adresse und Passwort. Wenn das neue Konto erstellt wurde, wird der Benutzer automatisch angemeldet.
- Beispielverwendung
applyActionCode
- Wird eine Bestätigung code an, die dem Benutzer per E-Mail gesendet wurde.
import { FirebaseAuthentication } from '@capgo/capacitor-firebase-authentication';
await FirebaseAuthentication.applyActionCode({} as ApplyActionCodeOptions);
confirmPasswordReset
- Abschließt den Passwortschutzprozess.
import { FirebaseAuthentication } from '@capgo/capacitor-firebase-authentication';
await FirebaseAuthentication.confirmPasswordReset({} as ConfirmPasswordResetOptions);
confirmVerificationCode
- Beendet den Telefonnummernbestätigungsprozess.
import { FirebaseAuthentication } from '@capgo/capacitor-firebase-authentication';
await FirebaseAuthentication.confirmVerificationCode({} as ConfirmVerificationCodeOptions);
createUserWithEmailAndPassword
- Erstellt ein neues Benutzerkonto mit E-Mail-Adresse und Passwort. Wenn das neue Konto erstellt wurde, wird der Benutzer automatisch angemeldet.
import { FirebaseAuthentication } from '@capgo/capacitor-firebase-authentication';
await FirebaseAuthentication.createUserWithEmailAndPassword({} as CreateUserWithEmailAndPasswordOptions);
- Vollständige Referenz
- - GitHub: - https://github.com/Cap-go/capacitor-firebase/tree/main/packages/authentication
- Docs: /docs/plugins/firebase-authentication/
Fortsetzen Sie mit der Verwendung von @capgo/capacitor-firebase-authentication
Wenn Sie die Verwendung von Die Verwendung von @capgo/capacitor-firebase-authentication um die Authentifizierung und die Kontenflüsse zu planen, verbinden Sie es mit @capgo/capacitor-social-login um die Implementierungsdetails in @capgo/capacitor-social-login anzuzeigen @capgo/capacitor-passkey um die Implementierungsdetails in @capgo/capacitor-passkey anzuzeigen @capgo/capacitor-native-biometric um die Implementierungsdetails in @capgo/capacitor-native-biometric anzuzeigen Zweifaktor-Authentifizierung zur Implementierungsdetail in Two-Faktor-Authentifizierung und SSO (Unternehmen) zur Implementierungsdetail in SSO (Unternehmen).