Replies: 3 comments
-
hey there , you can totally make it so that when users click the sign-in button, a nice little pop-up window shows up for them to sign in through Google. This way, they won't have to leave your site. try below function SigninBtn() { console.log(session); if (session && session.user) { {session.user.name} <button onClick={() => signOut()} className="text-red-600"> Sign Out ); } return ( This bit of code works like a charm. When your users hit that sign-in button, a cute little popup window appears. They can sign in through Google right there, all cozy in that window. And the best part? Your site stays put – no wandering off to another page. So, happy signing in, without the travel plans! 🚀🔐 |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
i tried every approach here but none of it worked out, when i call the signin function even with the redirect false it does the redirect and dont return the URL for oAuth with google POPUP, what can i do ? |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I have a Nextjs project. I am using Next-Auth with Google login. Is there an option when we press button to sign in to get a new pop up window and sign in. Current when user press the sign in button it redirects them to Google auth sign in page. Once they finish with sign in it will take them back to my site. I was hoping to have a new window where they can site in. I don't want my users leaving my site.
Beta Was this translation helpful? Give feedback.
All reactions