jeffminsungkim / Ashy

0 stars 0 forks source link

Access token #37

Closed jeffminsungkim closed 6 years ago

jeffminsungkim commented 6 years ago

Objective

Store user's access token in a local storage by using sqlite-storage plug-in.

webSQLStorage is like SQLite but it is still browser-based storage so still have that problem with the data being clear. Browser storage is limited to 5MB and it can be cleaned up by the operating system so if the operating system is trying to free up some space on a device, it might just wipe that storage completely. SQLite database, on the other hand, is a native database so it's outside of the browser, the data is not going to be deleted if it's in a native database. (A native database is not available in the browser unless using SQLite-storage plugin)

If you are running your application without the SQLite plug-in installed it's going to fall back to browser-based storage. If you do have the SQLite plug-in installed you have access to that native database then it's going to use that instead.