The Firebase Auth quickstart demonstrates several methods for signing in:
We also provide the code for a Chrome Extension showing how to setup and authorize Firebase in a Chrome extension.
config.ts file in the auth directory.https://<project_id>.firebaseapp.com/__/auth/handler for auth redirects and enable and setup the app's credentials in the Firebase Console > Authentication > SIGN-IN METHOD.npm install -g firebase-tools and then configure it with firebase login.cd into the quickstart-js/auth subdirectory.firebase use --add and select your Firebase project.To run the sample app locally during development:
npm install to install dependencies.firebase emulators:start to start the local Firebase emulators. Note: phone authentication required ReCaptcha verification which does not work with the Firebase emulators. These examples skip connecting to the emulators.npm run dev to serve the app locally using Vite
This will start a server locally that serves index.html on http://localhost:5173/index.html. Running the app using the Firebase CLI:
npm install to install dependencies.npm run build to build the app using Vite.firebase emulators:start to start the local Firebase emulators. Note: phone authentication required ReCaptcha verification which does not work with the Firebase emulators. These examples skip connecting to the emulators.127.0.0.1:5002, though it may be different for you.firebase emulators:start command.To deploy the sample app to production:
firebase deploy.
This will deploy the sample app to https://<project_id>.firebaseapp.com.© Google, 2016. Licensed under an Apache-2 license.