Add firebase emulator, Add registration script, Add signup spec (#22)

* add firebase emulator, add registration script, add signup spec

* Upgrade firebase emulator and make it pass the E2E tests

---------

Co-authored-by: MartinBraquet <martin.braquet@gmail.com>
This commit is contained in:
Nicholas Chamberlain
2025-12-06 14:43:46 -08:00
committed by GitHub
parent 348a557f5c
commit ef7665c7da
18 changed files with 2859 additions and 140 deletions

16
scripts/setup-auth.ts Normal file
View File

@@ -0,0 +1,16 @@
import axios from 'axios';
import { config } from '../tests/e2e/web/SPEC_CONFIG.js';
async function createAuth() {
const base = 'http://localhost:9099/identitytoolkit.googleapis.com/v1';
await axios.post(`${base}/accounts:signUp?key=fake-api-key`, {
email: config.USERS.DEV_1.EMAIL,
password: config.USERS.DEV_1.PASSWORD,
returnSecureToken: true
});
console.log('Auth created', config.USERS.DEV_1.EMAIL)
}
createAuth();