Skip to content

Commit

Permalink
add default profiles for auth emulator
Browse files Browse the repository at this point in the history
  • Loading branch information
GnRlLeclerc committed Apr 29, 2024
1 parent 5fccbf7 commit c838474
Show file tree
Hide file tree
Showing 5 changed files with 62 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
"splitTerminals": [
{
"name": "firebase",
"commands": ["firebase emulators:start"],
"commands": ["firebase emulators:start --import ./export"],
"icon": "🔥"
}
]
Expand Down
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ This is a repository to support collaboration on using LLMs in behavioral econom
├── docs # Documentation
├── export # Firebase Authentication export with default google accounts for Auth emulator
├── firestore # Firestore rules and indexes
├── functions # Firebase Cloud Functions
Expand Down Expand Up @@ -69,7 +71,7 @@ This should be enough for local development with emulators. Be sure to input the
In order to run offline and for development purposes, we use Java Firebase emulators.

```bash
firebase emulators:start # Start the emulators
firebase emulators:start --import ./export # Start the emulators and load the default Auth dump
```

You will then be able to access the following UIs:
Expand Down
47 changes: 47 additions & 0 deletions export/auth_export/accounts.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
{
"kind": "identitytoolkit#DownloadAccountResponse",
"users": [
{
"localId": "R7dWvQjkuhsCJgplJ3WtnUDsD9kR",
"displayName": "Experimenter",
"email": "experimenter@google.com",
"emailVerified": true,
"createdAt": "1714400539266",
"lastLoginAt": "1714400583451",
"providerUserInfo": [
{
"providerId": "google.com",
"rawId": "1651642867512372825802162318175962691422",
"federatedId": "1651642867512372825802162318175962691422",
"displayName": "Experimenter",
"email": "experimenter@google.com"
}
],
"lastRefreshAt": "2024-04-29T14:23:03.451Z",
"salt": "fakeSalttpRdKDA4NS5sxXb2GeoT",
"passwordHash": "fakeHash:salt=fakeSalttpRdKDA4NS5sxXb2GeoT:password=xxxxxx",
"passwordUpdatedAt": 1714400578192,
"validSince": "1714400578",
"photoUrl": "",
"customAttributes": "{\"role\": \"experimenter\"}"
},
{
"localId": "e5bXFO0SONUk6VYbiuThBLjrWUfL",
"displayName": "Not Experimenter",
"email": "not-experimenter@google.com",
"emailVerified": true,
"createdAt": "1714400557162",
"lastLoginAt": "1714400557163",
"providerUserInfo": [
{
"providerId": "google.com",
"rawId": "5305811106632233234179828366493146036480",
"federatedId": "5305811106632233234179828366493146036480",
"displayName": "Not Experimenter",
"email": "not-experimenter@google.com"
}
],
"lastRefreshAt": "2024-04-29T14:22:37.163Z"
}
]
}
4 changes: 4 additions & 0 deletions export/auth_export/config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"signIn": { "allowDuplicateEmails": false },
"emailPrivacyConfig": { "enableImprovedEmailPrivacy": false }
}
7 changes: 7 additions & 0 deletions export/firebase-export-metadata.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"version": "13.7.5",
"auth": {
"version": "13.7.5",
"path": "auth_export"
}
}

0 comments on commit c838474

Please sign in to comment.