Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

added account linking/email existence check function #17

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

home0712
Copy link
Collaborator

Tasks Completed:

  • added a function to link a google account to an existing email/pwd account
  • added a function to check if the entered email already exists in the database (use for signing up process)

p.s.
I guess I had a misunderstanding regarding account linking and authentication. I am sorry for any confusion caused.
Based on the potential scenarios, I have implemented the code as follows:

  1. A user with an existing email/pwd account ([email protected]) on the web tries to sign in (or sign up) with a google account using the same email address ([email protected]).
    - the accounts are automatically linked according to the firebase auth setting.
  2. A user with an existing google account ([email protected]) on the web tries to sign up using an email/pwd account method with the same address ([email protected]).
    • this may be prevented if the entered email is checked during the sign-up process.
  3. A user with an existing email/pwd account ([email protected]) on the web wants to link a google account ([email protected]).
    - account linking is only applicable in this case
    - it is not allowed to link an existing Google account to a new Google account.

@home0712 home0712 requested review from nkanchinadam, utkarsh17gupta and ukataria and removed request for utkarsh17gupta March 30, 2024 13:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant