Zum Hauptinhalt springen
Zurück zu Plugins
@capgo/capacitor-firebase-authentication
Anleitung
@capgo/capacitor-firebase-authentication

Firebase Authentication

Capacitor-Plugin für Firebase Authentication

Leitfaden

Tutorial zur Authentifizierung über Firebase

Verwendung von @capgo/capacitor-firebase-authentication

Capacitor-Plugin für Authentifizierung über Firebase

Installieren

bun add @capgo/capacitor-firebase-authentication
bunx cap sync

Was dieses Plugin bereitstellt

  • applyActionCode - Überprüft eine Bestätigung code an den Benutzer per E-Mail.
  • confirmPasswordReset - Fertigt den Passwortschutzprozess ab.
  • confirmVerificationCode - Beendet die Telefonnummer-Verifizierungsprozess.
  • createUserWithEmailAndPassword - Erstellt ein neues Benutzerkonto mit E-Mail-Adresse und Passwort. Wenn das neue Konto erstellt wurde, wird der Benutzer automatisch angemeldet.

Beispielanwendung

applyActionCode

Wendet eine Verifizierung code an, die dem Benutzer per E-Mail zugesendet wurde.

import { FirebaseAuthentication } from '@capgo/capacitor-firebase-authentication';

await FirebaseAuthentication.applyActionCode({} as ApplyActionCodeOptions);

confirmPasswordReset

Beendet das Passwort-Restore-Prozess.

import { FirebaseAuthentication } from '@capgo/capacitor-firebase-authentication';

await FirebaseAuthentication.confirmPasswordReset({} as ConfirmPasswordResetOptions);

confirmVerificationCode

- Beendet die Telefonnummer-Verifizierungsprozess.

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

Fortsetzen Sie mit der Verwendung von @capgo/capacitor-firebase-authentication

If Sie eine Nutzung Mit @capgo/capacitor-firebase-authentication um die Authentifizierung und die Kontenflüsse zu planen, verbinden Sie es mit @capgo/capacitor-social-login zur Implementierungsdetail in @capgo/capacitor-social-login, @capgo/capacitor-passkey zur Implementierungsdetail in @capgo/capacitor-passkey, @capgo/capacitor-native-biometric zur Implementierungsdetail in @capgo/capacitor-native-biometric, Zwei-Faktor-Authentifizierung zur Implementierungsdetail in Zwei-Faktor-Authentifizierung, und SSO (Unternehmen) Für die Implementierungsdetails in SSO (Unternehmen).