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

Firebase-Authentifizierung

Capacitor-Plugin für Firebase-Authentifizierung

Ansehen auf __CAPGO_KEEP_0__

Anleitung

Using @capgo/capacitor-firebase-authentication

Verwendung von @Capacitor/__CAPGO_KEEP_1__-firebase-authentication

__CAPGO_KEEP_0__-Plugin für Firebase-Authentifizierung.

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

Installieren

  • applyActionCode - Applies a verification code sent to the user by email.
  • confirmPasswordReset - Überprüft eine Bestätigung __CAPGO_KEEP_0__ , die dem Benutzer per E-Mail gesendet wird.
  • confirmVerificationCode - Beendet das 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 das 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 __CAPGO_KEEP_0__ verwenden Mit capgo/capacitor-firebase-authentication planen Sie die Authentifizierung und die Kontenflüsse, verbinden Sie es mit __CAPGO_KEEP_0__/__CAPGO_KEEP_1__-social-login Die Implementierungsdetails finden Sie in capgo/capacitor-social-login, capgo/capacitor-passkey Die Implementierungsdetails finden Sie in capgo/capacitor-passkey, capgo/capacitor-native-biometric Die Implementierungsdetails finden Sie in capgo/capacitor-native-biometric, for the implementation detail in @capgo/capacitor-native-biometric, Die Implementierungsdetails finden Sie in der Zwei-Faktor-Authentifizierung und SSO (Unternehmen) Wenn Sie __CAPGO_KEEP_0__ verwenden Für die Implementierungsdetails in SSO (Unternehmen).