Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Firebaseのログインで表示されるアプリ名を変更 #232

Open
mami-inuzuka opened this issue Mar 2, 2022 · 0 comments
Open

Comments

@mami-inuzuka
Copy link
Owner

mami-inuzuka commented Mar 2, 2022

参考:https://scrapbox.io/ci7lus/firebase_auth_%E3%81%A7_Google_%E9%80%A3%E6%90%BA%E3%83%AD%E3%82%B0%E3%82%A4%E3%83%B3%E3%81%99%E3%82%8B%E3%81%A8%E3%81%8D%E3%81%AE%E3%83%89%E3%83%A1%E3%82%A4%E3%83%B3%E5%90%8D%E3%81%8C%E3%83%97%E3%83%AD%E3%82%B8%E3%82%A7%E3%82%AF%E3%83%88%E5%90%8D%E3%81%9D%E3%81%AE%E3%81%BE%E3%81%BE%E3%81%99%E3%81%8E%E3%82%8B%E3%81%AE%E3%82%92%E6%B2%BB%E3%81%99%E6%96%B9%E6%B3%95

https://qiita.com/moyashidaisuke/items/285ad25d9d8c858cee58

やったこと

認証済みドメインの追加

Firebase のコンソールから追加するとおそらく自動的にGoogle Cloud Platform の方の設定にも追加される
スクリーンショット 2022-03-05 23 22 50
スクリーンショット 2022-03-05 23 22 37

承認済みの JavaScript 生成元と承認済みのリダイレクト URIを設定

スクリーンショット 2022-03-05 23 18 22

環境変数を修正

const firebaseConfig = {
  apiKey: process.env.REACT_APP_FIREBASE_API_KEY,
  authDomain: process.env.REACT_APP_FIREBASE_AUTH_DOMAIN,
  projectId: process.env.REACT_APP_FIREBASE_PROJECT_ID,
  storageBucket: process.env.REACT_APP_FIREBASE_STORAGE_BUCKET,
  messagingSenderId: process.env.REACT_APP_FIREBASE_MESSAGE_SENDER_ID,
  appId: process.env.REACT_APP_FIREBASE_SENDER_ID,
}

authDomainに設定している環境変数を独自ドメインに変更

残TODO

https://firebase.google.com/docs/hosting/custom-domain

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant