firebase-tools: v12.8.1
firebase-js-sdk: v10.5.2
Steps to install dependencies and build web app. Alternatively, run
bash install-dep.bash to install dependencies and build the web app.
- Run
npm installfor the ff folders:- http-func
- functions
- pubsub
- web-app
- Run
npm run buidfor the ff:- web-app
- Run
firebase emulators:start --project demo-test - Open "http://127.0.0.1:5000"
- Click the "Sign in with Google" button
- Sign in as expected
- Logs in the terminal do not show that
beforeUserSignedInwas triggered
http-func - contains a single http function
functions - contains the auth trigger
pubsub - contains the pubsub function
web-app - contains a web application for auth to trigger beforeUserSignedIn
Issue seems to be caused by usage of codebases(?) moving the codebase with the auth trigger to the last index resolves the auth trigger issue.