Skip to content

Commit

Permalink
firebase auth emulator
Browse files Browse the repository at this point in the history
  • Loading branch information
ciscorn committed Sep 27, 2024
1 parent 911590f commit 3182fd4
Show file tree
Hide file tree
Showing 8 changed files with 7,668 additions and 1,249 deletions.
7 changes: 6 additions & 1 deletion .env.example
Original file line number Diff line number Diff line change
@@ -1 +1,6 @@
GOOGLE_SERVICE_ACCOUNT_KEY='<...Firebaseプロジェクトのサービスアカウントキーの中身を直接記入>'
PUBLIC_FIREBASE_PROJECT_ID=fukada-delete-me
PUBLIC_FIREBASE_API_KEY=AIzaSyCqkxdTAOegNHszt2gHJp8Jkss2v9IZ71c
PUBLIC_FIREBASE_AUTH_EMULATOR_HOST=127.0.0.1:9099
GOOGLE_SERVICE_ACCOUNT_KEY=
PUBLIC_STRIPE_KEY=pk_test_51Pid8OLtNIgQdVMELz3Zbod4CjWiZdG5NBpZVUfKEGr2Vc7MYEbEwSHkMpJAfKVGSQLxDXk66YVma4qi0uMkwLrV00R5lQ4ZwP
SECRET_STRIPE_KEY=
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@ node_modules
.DS_Store
Thumbs.db

# Log
*.log

# Env
.env
.env.*
Expand Down
40 changes: 40 additions & 0 deletions firebase-debug.log
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
[debug] [2024-09-27T12:57:16.887Z] ----------------------------------------------------------------------
[debug] [2024-09-27T12:57:16.889Z] Command: /Users/fukada/.volta/tools/image/node/20.17.0/bin/node /Users/fukada/Repos/github.com/MIERUNE/sveltekit-firebaseauth-ssr/node_modules/.bin/firebase emulators:start --project fukada-delete-me
[debug] [2024-09-27T12:57:16.889Z] CLI Version: 13.20.0
[debug] [2024-09-27T12:57:16.889Z] Platform: darwin
[debug] [2024-09-27T12:57:16.889Z] Node Version: v20.17.0
[debug] [2024-09-27T12:57:16.889Z] Time: Fri Sep 27 2024 21:57:16 GMT+0900 (Japan Standard Time)
[debug] [2024-09-27T12:57:16.889Z] ----------------------------------------------------------------------
[debug]
[debug] [2024-09-27T12:57:16.957Z] > command requires scopes: ["email","openid","https://www.googleapis.com/auth/cloudplatformprojects.readonly","https://www.googleapis.com/auth/firebase","https://www.googleapis.com/auth/cloud-platform"]
[debug] [2024-09-27T12:57:16.957Z] > authorizing via signed-in user ([email protected])
[info] i emulators: Starting emulators: auth {"metadata":{"emulator":{"name":"hub"},"message":"Starting emulators: auth"}}
[debug] [2024-09-27T12:57:17.511Z] [logging] Logging Emulator only supports listening on one address (127.0.0.1). Not listening on ::1
[debug] [2024-09-27T12:57:17.512Z] [auth] Authentication Emulator only supports listening on one address (127.0.0.1). Not listening on ::1
[debug] [2024-09-27T12:57:17.512Z] assigned listening specs for emulators {"user":{"hub":[{"address":"127.0.0.1","family":"IPv4","port":4400},{"address":"::1","family":"IPv6","port":4400}],"ui":[{"address":"127.0.0.1","family":"IPv4","port":4000},{"address":"::1","family":"IPv6","port":4000}],"logging":[{"address":"127.0.0.1","family":"IPv4","port":4500}],"auth":[{"address":"127.0.0.1","family":"IPv4","port":9099}]},"metadata":{"message":"assigned listening specs for emulators"}}
[debug] [2024-09-27T12:57:17.514Z] [hub] writing locator at /var/folders/09/76hkdnms7x74z3rbkh84vm740000gn/T/hub-fukada-delete-me.json
[debug] [2024-09-27T12:57:20.847Z] Ignoring unsupported arg: auto_download {"metadata":{"emulator":{"name":"ui"},"message":"Ignoring unsupported arg: auto_download"}}
[debug] [2024-09-27T12:57:20.847Z] Ignoring unsupported arg: port {"metadata":{"emulator":{"name":"ui"},"message":"Ignoring unsupported arg: port"}}
[debug] [2024-09-27T12:57:20.847Z] Starting Emulator UI with command {"binary":"node","args":["/Users/fukada/.cache/firebase/emulators/ui-v1.13.0/server/server.mjs"],"optionalArgs":[],"joinArgs":false,"shell":false,"port":4000} {"metadata":{"emulator":{"name":"ui"},"message":"Starting Emulator UI with command {\"binary\":\"node\",\"args\":[\"/Users/fukada/.cache/firebase/emulators/ui-v1.13.0/server/server.mjs\"],\"optionalArgs\":[],\"joinArgs\":false,\"shell\":false,\"port\":4000}"}}
[info] i ui: Emulator UI logging to ui-debug.log {"metadata":{"emulator":{"name":"ui"},"message":"Emulator UI logging to \u001b[1mui-debug.log\u001b[22m"}}
[debug] [2024-09-27T12:57:20.922Z] Web / API server started at 127.0.0.1:4000
{"metadata":{"emulator":{"name":"ui"},"message":"Web / API server started at 127.0.0.1:4000\n"}}
[debug] [2024-09-27T12:57:20.923Z] Web / API server started at ::1:4000
{"metadata":{"emulator":{"name":"ui"},"message":"Web / API server started at ::1:4000\n"}}
[debug] [2024-09-27T12:57:21.061Z] Could not find VSCode notification endpoint: FetchError: request to http://localhost:40001/vscode/notify failed, reason:
[info]
┌─────────────────────────────────────────────────────────────┐
│ ✔ All emulators ready! It is now safe to connect your app. │
│ i View Emulator UI at http://127.0.0.1:4000/ │
└─────────────────────────────────────────────────────────────┘

┌────────────────┬────────────────┬────────────────────────────┐
│ Emulator │ Host:Port │ View in Emulator UI │
├────────────────┼────────────────┼────────────────────────────┤
│ Authentication │ 127.0.0.1:9099 │ http://127.0.0.1:4000/auth │
└────────────────┴────────────────┴────────────────────────────┘
Emulator Hub running at 127.0.0.1:4400
Other reserved ports: 4500

Issues? Report them at https://github.com/firebase/firebase-tools/issues and attach the *-debug.log files.

10 changes: 10 additions & 0 deletions firebase.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"emulators": {
"auth": {
"port": 9099
},
"ui": {
"enabled": true
}
}
}
Loading

0 comments on commit 3182fd4

Please sign in to comment.