Open esam12 opened 1 month ago
Same issue I faced while restarting of application but I use sharedpreference (another oneFlutter_Secure_Storage u can refer ) to store the login credentials check while login my credentials were stored or not if stored then directly get login ... but using this i am facing problem with image fetching
Hi, Good day! Thank you for providing odoo_rpc package. I created a Flutter app and I am facing OdooSessionExpiredException problem.
Future signInWithEmailAndPassword(
String database, String email, String password) async {
try {
// Access client
final session = await client.authenticate(database, email, password);
}
-- As shown here the login process is done and I get the data without any problem. Since there is no problem I give it the command to go to the second page (which is Webview to display Odoo) and it goes and shows me the web page.
-- But when I restart the application I face the problem OdooSessionExpiredException.
-- This Method when the application starts, it immediately enters the catch
screenRedirect() async { await TLocalStorage.init("sessionId");
}
-- And this Method when I enter the data as database & email & password and press the Login button on the screen
void login() async { try { /// Start Loading TFullScreenLoader.openLoadingDialog('Logging you in...', 'assets/animations/141594-animation-of-docer.json');
}
-- I did not understand the checkSession() what it returns and how to change the SessionId??