Identity Platform
実体は Firebase Authentication と同じ
docs
gcloud auth application-default set-quota-project しても quota project ないと言われる
code:output
message: '//cloud.google.com/docs/authentication/adc-troubleshooting/user-creds . Raw server response: "{"error":{"code":403,"message":"Your application is authenticating by using local Application Default Credentials. The identitytoolkit.googleapis.com API requires a quota project, which is not set by default. To learn how to set your quota project, see https://cloud.google.com/docs/authentication/adc-troubleshooting/user-creds .",... Firebase Authentication は、gcloud OAuth クライアント ID を使用して生成された gcloud エンドユーザー認証情報を受け入れません。
そんなあ
Drive API のように --client-id-file= 渡すといけるらしい
OAuth2 Client ID は手動で作る?
Terraform にリソースなさそう
セッションクッキーは next/headers と組み合わせる
色々あるが...
メール & Password 認証で ID & Password をサーバーサイドへ送って自分でやる、idToken をセッションクッキーに入れる
割り切りは良いが Google や Apple などの認証に困る
Firebase じゃなくて単に Google Auth
これは良いと思う、Firebase ADK で auth やりつつ Credential Provider でやっている
Firebase Authentication はログインできるかどうかだけ、別の Cookie でやっている
このチュートリアル App Router だし今年の10月末に作られたやつだし良いね
もっとミニマムな実装がいいが