https://github.com/mikcsabee/auth-emulator-example
Example Firebase Emulator Authentication
https://github.com/mikcsabee/auth-emulator-example
firebase firebase-auth firebase-emulator newman postman postman-collection
Last synced: 2 months ago
JSON representation
Example Firebase Emulator Authentication
- Host: GitHub
- URL: https://github.com/mikcsabee/auth-emulator-example
- Owner: mikcsabee
- License: mit
- Created: 2023-05-07T09:28:18.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2025-12-30T20:13:17.000Z (3 months ago)
- Last Synced: 2026-01-03T18:26:05.913Z (2 months ago)
- Topics: firebase, firebase-auth, firebase-emulator, newman, postman, postman-collection
- Language: TypeScript
- Homepage:
- Size: 2.62 MB
- Stars: 4
- Watchers: 1
- Forks: 0
- Open Issues: 39
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
Firebase Authentication in Emulator Example
===========================================
This repository shows an example, of how to automatically create a valid `idToken` in Postman, before requests and use it as a bearer token.
The attached `PostmanCollection.json` executes a script which invokes the emulated Authenticatior api to create a user. The script is also available here: `postman/src/pre-request_script.ts`.
When you import the `PostmanCollection.json` into your Postman workspace you need to set the `apiKey`. (In order to have an `apiKey`, you need to create an `App` in Firebase).

You also need to generate and download the `serviceAccountKey.json` to the functions folder from the `Project settings`, `Service accounts` tab.
After this to setps, you should be able to run the `HelloWorld` method, which validates the token and returns the user data.

The created user should be visible in the [Emulator UI](http://localhost:4000/auth).