oxiton-foundation / click-metrics

Click Matrics is a powerful URL shortening and analytics platform designed to streamline the process of generating short URLs, creating QR codes, and tracking detailed analytics for each link.
https://click-metrics.vercel.app
MIT License
33 stars 49 forks source link

Feat : Implementing Auth Functionality #151

Open mukilan2815 opened 3 weeks ago

mukilan2815 commented 3 weeks ago

Description:

This pull request enhances the authentication flow of our application by integrating Firebase authentication and adding both email/password and Google Sign-In methods. The main focus is to provide users with a secure and seamless login experience while ensuring access control to protected pages.

Changes:

Implemented Firebase authentication for user management. Added both email/password authentication and Google Sign-In methods. Configured the application to require authentication for accessing protected pages. Modified navigation to restrict access to authenticated users only. Enhanced UI to guide users to sign in or sign up if not already authenticated.

Key Features:

Firebase Authentication Integration: Utilized Firebase Authentication services for secure user authentication.

Multiple Sign-In Options: Users can sign in using their email/password or through Google Sign-In.

Access Control: Restricted access to certain pages if the user is not authenticated, guiding them to sign in or sign up first.

Enhanced User Experience: Improved UI/UX to provide clear guidance for signing in or signing up.

Screenshots: image

image

image

image

Additional Notes:

This implementation ensures:

Secure authentication using Firebase. Seamless user experience with multiple sign-in options. Proper access control to protected pages. Clear guidance for users to sign in or sign up.

Resolves

149

github-actions[bot] commented 3 weeks ago

Thank you for submitting your pull request! 🙌 We'll review it as soon as possible. In the meantime, please ensure that your changes align with our #24. If there are any specific instructions or feedback regarding your PR, we'll provide them here. Thanks again for your contribution! 😊

Swarnendu0123 commented 3 weeks ago

Remove the package-lock.json from client and push a commit

mukilan2815 commented 3 weeks ago

Fixed , now check.

mukilan2815 commented 3 weeks ago

Completed that work.

Swarnendu0123 commented 2 weeks ago

Also use the variables, like process.env.VARIABLE_NAME, but vite has some other format of declaring variables. I have attached the doc in the previous comment. Figure out how to declare the variables. And declare them in a .env file.

mukilan2815 commented 2 weeks ago

used env file to store password and email. just check it out bro

mukilan2815 commented 2 weeks ago

@Swarnendu0123 Please check and close this PR

mukilan2815 commented 2 weeks ago

Resolved everything , but to verify that if user is signed in or not we can use localstorage?

Swarnendu0123 commented 2 weeks ago

We will not use local storage, we will use the Firebase directly. If we use local storage then it can be easily trackable. We don't want that!

mukilan2815 commented 1 week ago

can i merge ui alone first then i will implement the firebase logics in next pr?

Swarnendu0123 commented 1 week ago

can i merge ui alone first then i will implement the firebase logics in next pr?

Sure!