Skip to content

Authentication

Zeikar edited this page Feb 16, 2025 · 1 revision

Commentarium Wiki - Authentication

πŸ”‘ Authentication Overview

Commentarium supports Firebase authentication, allowing users to log in seamlessly using Google or anonymously. This authentication system ensures security and ease of use.

✨ Supported Authentication Methods

  • Google Sign-In: Users can log in using their Google account for a quick and secure experience.
  • Anonymous Login: Users can participate without creating an account, with an option to upgrade to a registered account later.

πŸš€ How It Works

1. Google Sign-In

  • Users click the Sign in with Google button.
  • Firebase handles authentication and returns a user session.
  • The user profile is linked to their Google account, enabling them to comment and vote.

2. Anonymous Login

  • Users can enter Commentarium without signing in by choosing Anonymous Mode.
  • They receive a temporary unique identifier to comment and vote.
  • If they decide to register later, their activity can be linked to a Google account.

βš™οΈ Firebase Integration

Commentarium uses Firebase Authentication API:

  • signInWithPopup for Google authentication
  • signInAnonymously for guest users
  • linkWithCredential for upgrading anonymous accounts

πŸ“Œ Benefits of Authentication

  • Security: Protects user data and ensures safe access.
  • Personalization: Users can track their comments and votes.
  • Seamless Experience: Easy transition from anonymous to registered accounts.