-
Notifications
You must be signed in to change notification settings - Fork 29
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
refactor pin flow #141
base: main
Are you sure you want to change the base?
refactor pin flow #141
Conversation
sajalbnl
commented
Jan 20, 2025
- issue [feat] refactor pin flow #140
- follows contribution guide
- code change includes tests
- breaking change
@@ -59,8 +62,7 @@ fun WalletApp(tokenViewModel: TokenViewModel) { | |||
hasAccountState.value?.let { hasAccount -> | |||
WalletappTheme { | |||
|
|||
|
|||
val startDestination = if (hasAccount) Wallet else Onboarding |
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.
this should require pin input if the pin has been set, not pin creation. A hash of the pin should be added to the WalletStoreModule once the pin has been created.
unfocusedTextColor = Color.White | ||
) | ||
) | ||
// PasscodeCircles(passcode, hiddenPasscode, maxDigits) |
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.
just delete code instead of commenting it out
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.
Creating the pin should happen as part of the onboarding flow. There should be an additional pin input locking the wallet screen (or just two screens: pin input screen, and then redirect to wallet screen). This just prompts the user to create a pin if they already have an account.
Let me know if you have any questions.