0
0
Firebasecloud~30 mins

Why authentication identifies users in Firebase - See It in Action

Choose your learning style9 modes available
Why Authentication Identifies Users
📖 Scenario: You are building a simple app that needs to know who is using it. To do this, you will use Firebase Authentication to identify users by their email and password.
🎯 Goal: Learn how to set up Firebase Authentication to identify users by creating a user account, configuring authentication, and signing in users.
📋 What You'll Learn
Create a user object with email and password
Set a configuration variable for Firebase Authentication
Write a function to sign in the user using Firebase Authentication
Complete the Firebase initialization with authentication enabled
💡 Why This Matters
🌍 Real World
Apps need to know who is using them to provide personalized experiences and secure access.
💼 Career
Understanding authentication is essential for cloud developers and engineers working with user management and security.
Progress0 / 4 steps
1
Create a user object with email and password
Create a dictionary called user with these exact entries: 'email': 'user@example.com' and 'password': 'securePass123'.
Firebase
Need a hint?

Use curly braces to create a dictionary with keys 'email' and 'password'.

2
Set a configuration variable for Firebase Authentication
Create a variable called firebase_config and set it to a dictionary with the key 'apiKey' and value 'your-api-key'.
Firebase
Need a hint?

Use a dictionary with the key 'apiKey' and the value 'your-api-key'.

3
Write a function to sign in the user using Firebase Authentication
Write a function called sign_in_user that takes email and password as parameters and calls firebase_auth.sign_in_with_email_and_password(email, password).
Firebase
Need a hint?

Define a function with two parameters and call the Firebase sign-in method inside it.

4
Complete the Firebase initialization with authentication enabled
Initialize Firebase with firebase_config and create a variable called firebase_auth by calling firebase.auth().
Firebase
Need a hint?

Call firebase.initialize_app with the config and assign firebase.auth() to firebase_auth.