feat(mobile): Removed stay logged in checkbox and made it enabled by default (#1550)

* removed stay logged in checkbox and made it enabled by default

* adds padding to login button

* removed all isSaveLogin

* fix: logout would re-login with previous credential upon app restart

---------

Co-authored-by: Alex <alex.tran1502@gmail.com>
This commit is contained in:
martyfuhry 2023-02-05 09:07:02 -05:00 committed by GitHub
parent f38c7a4b7e
commit 16183791f3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 14 additions and 77 deletions

View file

@ -29,7 +29,6 @@ class SplashScreenPage extends HookConsumerWidget {
.read(authenticationProvider.notifier)
.setSuccessLoginInfo(
accessToken: loginInfo.accessToken,
isSavedLoginInfo: true,
serverUrl: loginInfo.serverUrl,
);
if (isSuccess) {
@ -47,7 +46,7 @@ class SplashScreenPage extends HookConsumerWidget {
useEffect(
() {
if (loginInfo?.isSaveLogin == true) {
if (loginInfo != null) {
performLoggingIn();
} else {
AutoRouter.of(context).replace(const LoginRoute());