Skip to content

Fixed the OTP functionality #266

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

matheshvishnu
Copy link

This PR refactors the OTP verification flow to enhance the user experience and prepare for future features. It refines the VerificationCubit for better state management, adds meaningful error handling with informative messages in the failure state, and introduces clearer state transitions. A significant performance improvement is achieved by implementing const constructors for state classes, enabling compile-time constant creation and reducing memory allocation. These changes not only bring the application closer to industry standards but also lay the groundwork for implementing features like OTP resending and password reset in upcoming iterations, while improving maintainability and responsiveness. Unit tests have been added to verify the correctness of the changes, and the application has been tested on physical devices and emulators.

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.

1 participant