Resolves #421 Manual long-lived token

This commit is contained in:
estevez-dev
2019-08-26 18:04:40 +03:00
parent 37155901ef
commit fadfefd836
3 changed files with 71 additions and 4 deletions

View File

@ -303,7 +303,10 @@ class Connection {
_tempToken = null;
final storage = new FlutterSecureStorage();
storage.write(key: "hacl_llt", value: "$_token").then((_) {
completer.complete();
SharedPreferences.getInstance().then((prefs) {
prefs.setBool("oauth-used", true);
completer.complete();
});
}).catchError((e) {
throw e;
});