LucidFirebaseAuthService class
Implémentation Firebase Auth de LucidAbstractAuthService.
La connexion sociale (Google/Apple) ne dépend d'aucun SDK tiers ici: on
injecte les jetons déjà obtenus (via google_sign_in,
sign_in_with_apple, ...) sous forme de LucidOAuthTokens, pour que
lucid_core_flutter reste léger pour les projets qui n'ont pas besoin de
connexion sociale.
- Implemented types
Constructors
-
LucidFirebaseAuthService({FirebaseAuth? auth, Future<
LucidOAuthTokens?> googleTokensProvider()?, Future<LucidOAuthTokens?> appleTokensProvider()?})
Properties
-
appleTokensProvider
→ Future<
LucidOAuthTokens?> Function()? -
final
-
authStateChanges
→ Stream<
LucidAuthUser?> -
no setteroverride
- currentToken → String?
-
no setteroverride
- currentUser → LucidAuthUser?
-
no setteroverride
-
googleTokensProvider
→ Future<
LucidOAuthTokens?> Function()? -
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
dispose(
) → Future< void> - Libère les ressources internes (à appeler quand le service n'est plus utilisé).
-
initialize(
) → Future< void> -
override
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
refreshToken(
) → Future< LucidAuthResult> -
override
-
sendEmailVerification(
) → Future< void> -
override
-
sendPasswordResetEmail(
String email) → Future< void> -
override
-
signIn(
String email, String password) → Future< LucidAuthResult> -
override
-
signInWithApple(
) → Future< LucidAuthResult> -
override
-
signInWithGoogle(
) → Future< LucidAuthResult> -
override
-
signOut(
) → Future< void> -
override
-
signUp(
LucidAuthCredentials credentials) → Future< LucidAuthResult> -
override
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited