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

Always create full account on PasswordLoginScene #206

Merged
merged 1 commit into from
Aug 27, 2024

Conversation

Jon-edge
Copy link
Contributor

@Jon-edge Jon-edge commented Aug 23, 2024

CHANGELOG

Does this branch warrant an entry to the CHANGELOG?

  • Yes
  • No

Dependencies

none

Description

none

@Jon-edge Jon-edge force-pushed the jon/always-create-full-acc branch 2 times, most recently from 47bca30 to 916bd79 Compare August 23, 2024 21:05
@@ -6,7 +6,6 @@ export type BiometryType = 'FaceID' | 'TouchID' | false
export type InitialRouteName =
| 'login'
| 'login-password'
| 'login-password-light'
Copy link
Contributor

Choose a reason for hiding this comment

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

This is a public API, so we can't really change it without a major version bump. So, instead of deleting it, just mark it with /** @deprecated Same as 'login-password' */, and then in the switch statement, you can just merge it with the 'login-password' case:

switch (imports.initialRoute) {
case 'login':
  // ...

case 'login-password-light':
case 'login-password':
   // visit password scene

case 'new-account':
  // ...
}

@@ -69,12 +67,10 @@ export interface TouchIdInfo {
//

export interface ExperimentConfig {
createAccountType: CreateAccountType
Copy link
Contributor

Choose a reason for hiding this comment

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

Deleting this public API is fine, since previous inputs would still be valid - we just ignore the unknown value.

@Jon-edge Jon-edge merged commit 047a369 into master Aug 27, 2024
1 check passed
@Jon-edge Jon-edge deleted the jon/always-create-full-acc branch August 27, 2024 17:37
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.

2 participants