Discord login page for T3 stack app not working on Firebase App Hosting
I'm having issues getting the Discord login page working on Firebase App Hosting (https://firebase.google.com/docs/app-hosting). I was able to get Firebase App Hosting to recognize my T3 app from GitHub and it used it for a build. I did have to creating an apphosting.yaml file with contents similar to what I have in my .env - and I also created some Google Cloud Secrets Manager secrets. It deployed fine and the web page did come up. I also added the app URL appended with /api/auth/callback/discord to the Discord OAuth2 redirect URL list like I did originally with the localhost:3000 URL. However, when I click on the Sign In button, then click on the Sign in with Discord button, nothing happens in the browser. The F12 console doesn't show any network errors. The App Hosting Cloud Run logs don't show any errors either. What am I doing wrong or missing?
I know the T3 app is really meant to work with Vercel, but I was hoping to get this working on Firebase App Hosting. FYI, I deployed the t3 app to Vercel with no issues. I also added the Vercel app URL appended with /api/auth/callback/discord to the Discord OAuth2 redirect URL list. And when I click on the Sign in button then click on the Sign in with Discord button, it does take me to the Discord login page. So there's something different required with the Firebase App Hosting setup. I tried looking for info on this, but couldn't find anything. Or do I have to use Firebase auth instead?
0 Replies