I’ve been trying to implement NextAuth with Google Identity Platform (IDX) for a long time but haven’t been successful. Initially, I tried using the GitHub provider, but I kept getting an error saying that the redirect URL is not authorized.
I asked ChatGPT for help, and it suggested that the issue was due to the temporary URLs used by IDX. I faced the same problem when trying to implement it in Replit.
Then, I decided to use the Google provider, but I encountered the same authorization issue with the redirect URL.
Has anyone successfully set up NextAuth with Google IDX? How did you handle the redirect URL authorization issue? Any help would be greatly appreciated!
Actually my pc is not that strong to work with heavy libarary like next that’s why I use Google idx and also I move from one place to another regular and in between I try to do the work so is there any option that I can do in idx only
Make your IDX workspace public (seriously, this is important)
Grab the preview URL that IDX gives you and use that same URL in both your GitHub OAuth settings and your .env file(Copy this from the URL bar after the initial site opens. Don’t copy it from the IDX tab in editor)
Check out the README - it’s pretty straightforward. Just hit “import” in IDX, paste that repo URL, and you’re like 80% there already. Let me know if you get stuck!
Oh wow, thank you so much! That really blew my mind—I appreciate it a lot! Also, how did you get that Google logo in your username? I need it in mine too! (Just kidding… or am I? )
Hey No worries, Just start your server click on the firebase icon on the sidebar ans under the BACKEND PORTS option just click on the lock icon it will make the URL public.
Hey Phantom, I’m really sorry, truly sorry , but I’m struggling with this authentication issue. I know it might sound selfish to ask, but could you please create a video solution for me? Please, please, please