Zum Hauptinhalt springen
Zurück zu Plugins
@capgo/capacitor-firebase-authentication
Tutorial
von github.com/Cap-go

Firebase-Authentifizierung

Capacitor plugin for Firebase Authentication

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 - Sendet eine Bestätigung code an den Benutzer per E-Mail.
  • confirmPasswordReset - Führt das Passwort-Restore-Prozess ab.
  • confirmVerificationCode - Führt den Telefonnummer-Bestätigungsprozess ab.
  • createUserWithEmailAndPassword - Erstellt ein neues Benutzerkonto mit E-Mail-Adresse und Passwort. Wenn das neue Konto erstellt wurde, wird der Benutzer automatisch angemeldet.

Beispielverwendung

applyActionCode

Sendet eine Bestätigung code an den Benutzer per E-Mail.

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

await FirebaseAuthentication.applyActionCode({} as ApplyActionCodeOptions);

confirmPasswordReset

Führt das Passwort-Restore-Prozess ab.

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

await FirebaseAuthentication.confirmPasswordReset({} as ConfirmPasswordResetOptions);

confirmVerificationCode

Führt den Telefonnummer-Bestätigungsprozess ab.

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 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 Kontoflussplanung vorzubereiten, 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, Zweifaktor-Authentifizierung für die Implementierungsdetails in der Zwei-Faktor-Authentifizierung und SSO (Unternehmen) für die Implementierungsdetails in SSO (Unternehmen).