Advanced Firebase Authentication Extension Support New Kodular Update FREE

FirebaseAuthPro: Advanced Firebase Authentication Extension


Version: 1.0.1

Category: Extension

Visibility: Non-Visible

Developer: Idriss


πŸ”Ή Overview

FirebaseAuthPro is a **powerful authentication extension** for Kodular, allowing you to easily integrate Firebase Authentication into your app. It provides **sign-in, sign-up, anonymous login, user profile updates, email verification, password reset, account deletion, logout functionality, and offline data storage** for enhanced user management.


βœ… Key Features

  • πŸ”‘ Sign In & Sign Up: Authenticate users using email and password.
  • πŸ‘€ Anonymous Sign-In: Allow users to log in without an email/password.
  • πŸ“Š Retrieve User Data: Fetch user info such as email, display name, and photo.
  • βœ‰οΈ Email Verification: Send email confirmation links.
  • πŸ”„ Password Reset: Send password reset emails.
  • πŸ”§ Profile Management: Update user display name and photo URL.
  • πŸ—‘οΈ Account Deletion: Permanently remove user accounts.
  • πŸ”“ Logout: Clear all stored user credentials.
  • πŸ“‘ Offline Mode: Store and retrieve user credentials even when offline.

πŸ› οΈ Functions & Usage

:small_blue_diamond: Authentication Functions:

  • SignIn(email, password) – Logs in a user with email and password.
  • SignUp(email, password) – Registers a new user with email and password.
  • SignInAnonymously() – Allows anonymous sign-in (defaults email to "anonymous").

:small_blue_diamond: User Management:

  • GetUserData(idToken) – Retrieves user data using an authentication token.
  • UpdateProfile(idToken, displayName, photoUrl) – Updates the user profile.
  • ChangeEmail(idToken, newEmail) – Changes the user’s email.
  • ChangePassword(idToken, newPassword) – Changes the user’s password.

:small_blue_diamond: Email & Password Management:

  • SendEmailVerification(idToken) – Sends an email verification link.
  • SendPasswordResetEmail(email) – Sends a password reset email.
  • DeleteAccount(idToken) – Deletes the user account permanently.

:small_blue_diamond: Logout & Offline Mode:

  • Logout() – Clears all stored credentials and logs out the user.
  • GetStoredUserData() – Retrieves stored user credentials as JSON.
  • GetStoredEmail() – Retrieves the stored email.
  • GetStoredIdToken() – Retrieves the authentication token.
  • GetStoredRefreshToken() – Retrieves the refresh token.
  • GetStoredLocalId() – Retrieves the stored user ID.
  • GetStoredExpiresIn() – Retrieves the expiration time of the session.

πŸ“Œ How It Works (Step-by-Step Guide)

  1. Step 1: Import the Firebase Authentication Extension (.AIX) into your Kodular project.
  2. Step 2: Set your API Key using the ApiKey property.
  3. Step 3: Authenticate users using SignIn(), SignUp(), or SignInAnonymously().
  4. Step 4: Retrieve user data with GetUserData(idToken).
  5. Step 5: Update profile info using UpdateProfile().
  6. Step 6: Retrieve stored user credentials with GetStoredUserData().
  7. Step 7: Call Logout() to clear stored data when the user logs out.

πŸ›‘οΈ Offline Mode & Data Storage

When a user signs in, their credentials are automatically stored. You can retrieve this data anytime, even offline.

To retrieve stored credentials:

GetStoredUserData()

To retrieve a specific data field:

  • GetStoredEmail() – Get user email.
  • GetStoredIdToken() – Get authentication token.
  • GetStoredLocalId() – Get Firebase user ID.

To clear all stored data and logout:

Logout()


πŸ”” Events & Error Handling

:white_check_mark: Success Events:

  • SignInSuccess(localId, email, idToken, refreshToken, expiresIn)
  • SignUpSuccess(localId, email, idToken, refreshToken, expiresIn)
  • AnonymousSignInSuccess(localId, email, idToken, refreshToken, expiresIn)

:x: Error Handling Events:

  • SignInError(errorMessage)
  • SignUpError(errorMessage)
  • AnonymousSignInError(errorMessage)
  • GetUserDataError(errorMessage)
  • ChangePasswordError(errorMessage)
  • ChangeEmailError(errorMessage)

πŸ› οΈ Troubleshooting & Common Issues

⚠️ "Invalid API Key" Error?
β†’ Ensure your ApiKey is correctly set from Firebase.

:warning: β€œUser Not Found” Error?

β†’ The user must be registered before trying to sign in.

:warning: SignInAnonymously() not working?

β†’ Enable Anonymous Sign-In in Firebase Authentication settings.

:warning: Stored Data Not Retrieving?

β†’ Make sure the user has logged in before using GetStoredUserData().


πŸš€ Why Use This Extension?

βœ… **Fast & Secure Authentication** with Firebase. βœ… **Offline Mode** – Store and access user credentials anytime. βœ… **Complete user management** (Sign in, Sign up, Logout, Update profile). βœ… **Supports Anonymous sign-in** and **email verification**.

πŸš€47 BlocksπŸš€

πŸ“₯ Download & Documentation

πŸ”— Extension (.AIX):

FirebaseAuthPro.aix (27.0 KB)

Extension Support New Kodular Update

πŸŽ‰ Enjoy using FirebaseAuthPro! Share your feedback & suggestions below. πŸš€

⚠️Important Suggestion⚠️

I couldn't try extensions on all kinds of phones, but I would like anyone who has any problems to inform me so that I can update them.
4 Likes

Nice Extension.
Can we sign in by choosing Gmail account. without providing logging credentials?

Yes, I will Add this option Inchellah :innocent:

1 Like