Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@NhienLam
Copy link
Contributor

Add v9 snippets for https://cloud.google.com/identity-platform/docs/link-accounts#handling_the_account-exists-with-different-credential_error.

Remove the usage of fetchSignInMethodsForEmail from the existing snippet in the public doc because it was deprecated due to email enumeration concerns.

const method = promptUserForSignInMethod();

if (method === 'password') {
// TODO: Ask the user for their password.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

still needed?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This was from the existing snippet. I think this is to tell developers to implement promptUserForPassword so let's keep it.

@NhienLam NhienLam merged commit 1abb6ce into master Apr 12, 2024
@NhienLam NhienLam deleted the link-accounts branch April 12, 2024 23:24
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.

3 participants