SFFirebaseBootstrap class
Firebase Authentication service for SaasFork.
This class provides a method to initialize Firebase Authentication with the necessary configurations.
Example usage:
await SFFirebaseAuth.initialize(
apiKey: 'your-api-key',
authDomain: 'your-project.firebaseapp.com',
projectId: 'your-project-id',
storageBucket: 'your-project.appspot.com',
messagingSenderId: '1234567890',
appId: '1:1234567890:web:abcdef1234567890',
isDev: true, // Use emulator in development
);
// After initialization, you can use FirebaseAuth
// To sign in with a user:
await FirebaseAuth.instance.signInWithEmailAndPassword(
email: 'user@example.com',
password: 'password123'
);
Constructors
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
initialize(
{required String apiKey, required String authDomain, required String projectId, required String storageBucket, required String messagingSenderId, required String appId, bool isDev = false}) → Future< void> - Initializes Firebase with the specified configurations.
-
initializeFromConfig(
{bool? isDev}) → Future< void> - Initializes Firebase using configuration from SFConfig.