hasCredentials method
Whether the user has stored login credentials.
Returns true if both username and password exist in secure storage.
This does not validate the credentials or check session state.
Implementation
Future<bool> hasCredentials() async {
final username = await _secureStorage.read(key: _usernameKey);
final password = await _secureStorage.read(key: _passwordKey);
return username != null && password != null;
}