EddyVerbruggen / nativescript-secure-storage

:closed_lock_with_key: NativeScript plugin for secure local storage of fi. passwords
MIT License
111 stars 26 forks source link

return without promise #9

Closed chansc2016 closed 7 years ago

chansc2016 commented 7 years ago

Hi, is there any option that I can use the get method without promise? for example:

var secureStorage = new SecureStorage();
var fooValue= secureStorage.get({
    key: "foo"
}).

and directly get fooValue.

EddyVerbruggen commented 7 years ago

Actually I was thinking of adding that to the plugin. So soon you will :)

EddyVerbruggen commented 7 years ago

Hi @chansc2016 and @otaran, please update to version 2.2.0 to use the new sync API - see the updated samples in the readme.

Enjoy!