harsh-harlequin
harsh-harlequin6mo ago

mern Dashboard Client

I copied the mern dashboard client (from jsmastery) repository today but when I tried to run this app ( gave my googleAuthCLientId for sure) google authentication wasnot working properly it was unable to fetch and authenticate my google account , it was showing failed and unable to fetch ... please tell what should I do now
3 Replies
kapa.ai
kapa.ai6mo ago
Hi @mayank_23. I'm kapa.ai, your friendly support bot. I will try to answer your question by searching through the knowledge base. :wave: ---------------------- Hmm, I don't know enough to give you a confident answer yet. However, based on the information provided, it seems like you're having trouble with Google Authentication in your MERN application. Here are some general steps you can follow to troubleshoot the issue: 1. Ensure that you have correctly set up your Google OAuth credentials. You can follow the steps outlined in the NextAuth - Google And GitHub Authentications for Nextjs (https://refine.dev/blog/nextauth-google-github-authentication-nextjs#for-googleprovider-make-sure-you-have-a-google-account) blog post. 2. Make sure you have stored your Google OAuth client ID and SECRET in the .env.local file in the root level of your app folder. You should have GOOGLE_CLIENT_ID and GOOGLE_CLIENT_SECRET environment variables and assign the OAuth client values you created. 3. Check if you have correctly set up the NEXTAUTH_URL and NEXTAUTH_SECRET environment variables in the .env file. 4. If you're still facing issues, it might be helpful to check the console for any errors. This could provide more insight into what might be going wrong. If you're still having trouble, I would recommend reaching out to the Refine community on Discord (https://discord.com/channels/837692625737613362/1074755669099548722) or creating an issue on the Refine GitHub (https://github.com/refinedev/refine/issues) page. ---------------------- Note: you can ask me a follow up question by @ mentioning me again :speech_balloon: ----------------------
kapa.ai
kapa.ai6mo ago
<@1068557691301154816> kapa.ai is still learning and improving, please let us know how it did by reacting below
harsh-harlequin
harsh-harlequin6mo ago
but in the jsmastery lecture he didnt stored/used Google OAuth Secret in the .env file