earlymorning logo
Firebase
OverviewCLI toolSDKsInitialization
AuthAuth OverviewEmail accountIdentity ProviderAnonymous account
FirestoreFirestoreCollectionDocumentQueryCreate and update dataFirestore Security rules
StorageStorageObject: reference and metadataList objectsDownload an objectUpload an objectUpload task (advanced)Setting the bucket CORS header
Cloud FunctionsCloud FunctionsDefine Callable functionsInvoke a Callable functionsHTTP Cloud function (REST-API)Functions on Auth eventsFunctions on Firestore eventsEnvironment variablesDebug Functions locallyCron jobsDeployment
Timestamp and dates
GenKitGenKit.prompt Prompt fileTypescript Prompt file
earlymorning.dev / Firebase / Identity Provider

Identity Provider

Google Provider

We have to enable the Google provider in the Firebase console first.

const provider = new GoogleAuthProvider()
/*  */
signInWithPopup(auth, provider).then(() => {
    /* we may reload the page */
    window.location.reload()
})
Join
Discord
earlymorning logo

© 2025 - All rights reserved

Overview
CLI tool
SDKs
Initialization
Auth Overview
Email account
Identity Provider
Anonymous account
Firestore
Collection
Document
Query
Create and update data
Firestore Security rules
Storage
Object: reference and metadata
List objects
Download an object
Upload an object
Upload task (advanced)
Setting the bucket CORS header
Cloud Functions
Define Callable functions
Invoke a Callable functions
HTTP Cloud function (REST-API)
Functions on Auth events
Functions on Firestore events
Environment variables
Debug Functions locally
Cron jobs
Deployment
Timestamp and dates
GenKit
.prompt Prompt file
Typescript Prompt file
earlymorning.dev / Firebase / Identity Provider

Identity Provider

Google Provider

We have to enable the Google provider in the Firebase console first.

const provider = new GoogleAuthProvider()
/*  */
signInWithPopup(auth, provider).then(() => {
    /* we may reload the page */
    window.location.reload()
})