langx / langx-flutter

Here is the Flutter-based version of the LangX application, originally developed using the Ionic Angular framework.
BSD 3-Clause "New" or "Revised" License
6 stars 2 forks source link

🚀 : Logout Button in Profile - Login/Logout Lifecycle To Test Auth #16

Open xuelink opened 2 months ago

xuelink commented 2 months ago

Is your feature request related to a problem? Please describe. I'm always frustrated when I cannot easily test the authentication lifecycle in the app. Currently, there is no straightforward way to log out from the profile, making it challenging to verify the login/logout process and ensure that the authentication flow works correctly.

Describe the solution you'd like I would like a logout button to be added to the profile page. This button should allow users to log out easily and return to the login screen. This feature will facilitate testing the entire authentication lifecycle, from logging in to logging out and logging back in again.

Describe alternatives you've considered I have considered manually clearing the authentication tokens from the local storage or cookies, but this approach is cumbersome and not user-friendly. Additionally, it doesn't allow for a seamless user experience or thorough testing of the authentication flow within the app.

Additional context Adding a logout button in the profile will not only improve the user experience but also make it easier for developers and testers to verify the authentication process. This feature is essential for ensuring that the app's login/logout functionality is reliable and works as expected.

If you want to speed up the process of this issue, please send 🚀 as a reaction.