subhadipbhowmik / bio-branch

BioBranch is a streamlined and customizable platform that lets you manage and showcase all your social media handles and important links in one place.
https://biobranch.vercel.app
MIT License
37 stars 140 forks source link

Add Google OAuth for Login/Register Page #115

Open Lokesh-Bijarniya opened 1 month ago

Lokesh-Bijarniya commented 1 month ago

Is your proposal related to a problem?

Currently, users are required to create a new account by filling out a registration form, which often involves providing an email address, creating a password, and confirming the account. This process can be cumbersome and frustrating for users, leading to potential abandonment of the registration process. Additionally, users often struggle to remember passwords, and accounts may be created with invalid email addresses, impacting overall user satisfaction and engagement with the platform.

Describe the solution you'd like

I propose integrating Google OAuth authentication into the login and registration process. Users would have the option to log in or sign up using their existing Google accounts. This would involve adding a "Sign in with Google" button on the login/register page that redirects users to Google’s authentication flow. Upon successful authentication, users would be granted access to the platform without needing to input additional credentials. This solution would streamline the registration process and enhance user convenience.

Describe alternatives

Some alternatives I have considered include:

Manual Registration Only: Keeping the current user registration process without any OAuth integration. This option has been proven to cause user frustration and abandonment. Other OAuth Providers: Integrating additional OAuth providers (like Facebook or Twitter) instead of Google OAuth. However, Google OAuth is widely used and trusted, which aligns with user expectations. Email Link Authentication: Sending a one-time login link to the user’s email instead of requiring a password. While this can simplify login, it may not be as convenient for returning users.

Additional context

Integrating Google OAuth is becoming a standard practice for most modern applications, as it significantly improves user experience. Several applications successfully use this authentication method to enhance convenience and security. Additionally, this proposal relates to user feedback indicating a desire for quicker access controls and better account security measures. There are existing implementations and best practices in documentation that can guide the integration process.

Requirement/Document

To support this feature, I recommend checking Google’s OAuth documentation, which provides detailed instructions on implementing OAuth for web applications. You can find it here: Google Identity Platform Documentation. Furthermore, reviewing similar implementations in other projects could provide insights into common challenges and effective solutions.

arduvey29 commented 1 month ago

@subhadipbhowmik Hi, I’d love to help resolve this issue—could you please assign it to me?

Lokesh-Bijarniya commented 1 month ago

@subhadipbhowmik Can i start work on this ?