When the user enters incorrect passcode they are still logged into the app.
These lines in the PasscodeNavGraph are creating the issue.
onPasscodeRejected = {
navController.popBackStack()
navController.navigateToMainGraph()
},
Although removeing navController.navigateToMainGraph()
does fix the issue it creates a new one.
User is not able to enter passcode again after failing for the first time and the visibility button also stop working.