Search code examples
htmllocal-storageoffline-caching

authenticate user on offline mode


We have a app which works offline as the data is stored locally using local storage and HTML5 offline capabilities.

We want a way to authenticate the user when the user tries to launch the app offline (from a security purpose if ipad gets stolen).

We already have the authentication mechanism when the user tries to access the app while online


Solution

  • Crudely, you can use the person's password as the local storage database name. No password, no database access.