Skip to content

Add OOB flow to reset email when updateEmail is used.#3096

Merged
ssbushi merged 18 commits into
masterfrom
oob-code-for-update-email
Feb 17, 2021
Merged

Add OOB flow to reset email when updateEmail is used.#3096
ssbushi merged 18 commits into
masterfrom
oob-code-for-update-email

Conversation

@ssbushi

@ssbushi ssbushi commented Jan 29, 2021

Copy link
Copy Markdown
Contributor

Description

Fixes #3070. Tests are pending. Drafting a PR to clarify a few things.

Scenarios Tested

Manually tested creating an account, updating email and using the oobLink to reset email.

Sample Commands

await firebase.auth().createUserWithEmailAndPassword('test@email.com', 'testing');
await firebase.auth().currentUser?.updateEmail('test1@email.com');

HTTP GET http://localhost:9099/emulator/v1/projects/project-test/oobCodes

@google-cla google-cla Bot added the cla: yes Manual indication that this has passed CLA. label Jan 29, 2021
Comment thread src/emulator/auth/handlers.ts Outdated
Comment thread src/emulator/auth/operations.ts Outdated
Comment thread src/emulator/auth/operations.ts Outdated
@ssbushi ssbushi requested a review from yuchenshi January 29, 2021 16:21
Comment thread src/emulator/auth/operations.ts Outdated
Comment thread src/emulator/auth/operations.ts Outdated
Comment thread src/emulator/auth/operations.ts Outdated
@ssbushi ssbushi requested a review from yuchenshi February 10, 2021 15:13

@yuchenshi yuchenshi left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

General approach LGTM. See blocking comments below and tests please.

Comment thread src/emulator/auth/handlers.ts Outdated
Comment thread src/emulator/auth/handlers.ts Outdated
Comment thread src/emulator/auth/operations.ts Outdated
Comment thread src/emulator/auth/operations.ts Outdated
Comment thread src/emulator/auth/operations.ts
Comment thread src/emulator/auth/operations.ts Outdated
Comment thread src/emulator/auth/state.ts Outdated
Comment thread src/emulator/auth/operations.ts
@ssbushi ssbushi requested review from yuchenshi and removed request for yuchenshi February 12, 2021 21:44
Comment thread src/emulator/auth/operations.ts Outdated
@ssbushi ssbushi marked this pull request as ready for review February 17, 2021 17:41
@ssbushi ssbushi requested a review from yuchenshi February 17, 2021 17:41

@yuchenshi yuchenshi left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

LGTM with nits

Comment thread src/emulator/auth/operations.ts
Comment thread src/emulator/auth/operations.ts Outdated
Comment thread src/emulator/auth/operations.ts Outdated
Comment thread src/emulator/auth/operations.ts Outdated
@ssbushi ssbushi dismissed yuchenshi’s stale review February 17, 2021 18:45

Changes implemented

@ssbushi ssbushi requested a review from yuchenshi February 17, 2021 18:45
ssbushi and others added 2 commits February 17, 2021 13:46
Co-authored-by: Yuchen Shi <yuchenshi@google.com>
This was referenced Mar 12, 2021
devpeerapong pushed a commit to devpeerapong/firebase-tools that referenced this pull request Dec 14, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cla: yes Manual indication that this has passed CLA.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

oobCode not appearing after updateEmail is called while using emulators

2 participants