-
Notifications
You must be signed in to change notification settings - Fork 210
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
task(recovery-phone): Create new phone number setup method #18007
Conversation
setup: boolean | ||
) { | ||
// TODO: Provide real implementation FXA-10346 | ||
console.log('TODO: implement storeUnconfirmed', { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
setup: boolean | ||
) { | ||
// TODO: Provide real implementation FXA-10346 | ||
console.log('TODO: implement storeUnconfirmed', { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
} | ||
} | ||
|
||
const code = await this.otpCode.create(`${uid}:${phoneNumber}`); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we would want to use getCode?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
getCode
is private. Seems like create
is the public facing function.
@vbudhram I noticed this as well. It seem redundant to store the code twice; however, the |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@dschom Should be good to rebase and merge latest.
…r setup method Because: - We want to be able to setup a new phone number This Commit: - Creates a recovery phone service - Stubs out storeUnconfirmed in RecoveryPhoneManager - Adds config for recovery phone service - Adds tests for recovery phone service - Adds new error type RecoveryNumberNotSupportedError - Public exposes generateCode on OtpManager.
Because
This pull request
Issue that this pull request solves
Closes: FXA-10347
Checklist
Put an
x
in the boxes that applyScreenshots (Optional)
Please attach the screenshots of the changes made in case of change in user interface.
Other information (Optional)
Waiting on blocker to land, put a stub in place for now.