https://github.com/alsami/firebase-auth-selfhost-issue-repro
https://github.com/alsami/firebase-auth-selfhost-issue-repro
Last synced: 5 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/alsami/firebase-auth-selfhost-issue-repro
- Owner: alsami
- Created: 2025-07-29T10:25:42.000Z (11 months ago)
- Default Branch: main
- Last Pushed: 2025-07-29T14:07:58.000Z (11 months ago)
- Last Synced: 2025-08-30T17:24:46.445Z (10 months ago)
- Language: HTML
- Size: 177 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Steps to reproduce
## Download your firebase auth files
Download the following files into src/__/auth
- wget https://ADD-PROJECT-ID-HERE.firebaseapp.com/__/auth/handler
- wget https://ADD-PROJECT-ID-HERE.firebaseapp.com/__/auth/handler.js
- wget https://ADD-PROJECT-ID-HERE.firebaseapp.com/__/auth/experiments.js
- wget https://ADD-PROJECT-ID-HERE.firebaseapp.com/__/auth/iframe
- wget https://ADD-PROJECT-ID-HERE.firebaseapp.com/__/auth/iframe.js
For more details [check out this link](https://firebase.google.com/docs/auth/web/redirect-best-practices#:~:text=The%20signInWithRedirect%20flow%20starts%20by,back%20to%20the%20app%20domain.).
## Fill out values for firebase config in environment.ts
```typescript
export const environment = {
firebase: {
projectId: '',
appId: '',
storageBucket: '',
apiKey: '',
authDomain: 'localhost:4200',
messagingSenderId: '',
},
};
```
## Run the application
Run `ng serve --ssl` and navigate to https://localhost:4200. You should see the following error:
