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

Firebase-Authentifizierung

Capacitor-Plugin für Firebase-Authentifizierung

Richtlinie

Tutorial zur Firebase-Authentifizierung

Mit @capgo/capacitor-firebase-authentication verwenden

Capacitor-Plugin für Firebase-Authentifizierung

Installieren

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

Was dieses Plugin enthält

  • applyActionCode - Überprüft eine Bestätigung code an den Benutzer per E-Mail.
  • confirmPasswordReset - Fertigt den Passwort-Restore-Prozess ab.
  • confirmVerificationCode - Abschließt den Telefonnummernverifizierungsprozess.
  • 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 den Passwort-Restore-Prozess.

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

await FirebaseAuthentication.confirmPasswordReset({} as ConfirmPasswordResetOptions);

confirmVerificationCode

Abschließt den Telefonnummernverifizierungsprozess.

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

Weitermachen von Using @capgo/capacitor-firebase-authentication

Wenn Sie Mit @capgo/capacitor-firebase-authentication Authentifizierung und Kontoflows planen, verbinden Sie es mit @capgo/capacitor-social-login für die Implementierungsdetails in @capgo/capacitor-social-login, @capgo/capacitor-passkey für die Implementierungsdetails in @capgo/capacitor-passkey, @capgo/capacitor-native-biometric für die Implementierungsdetails in @capgo/capacitor-native-biometric, Zwei-Faktor-Authentifizierung für die Implementierungsdetails in Zwei-Faktor-Authentifizierung, und SSO (Unternehmen) für die Implementierungsdetails in SSO (Enterprise).