import LocalStorageStore from 'ember-simple-auth/session-stores/local-storage';
Session store that persists data in the browser's
localStorage is not available in Safari when running in private mode. In
general it is better to use the
AdaptiveStore that automatically falls back to
the CookieStore when
localStorage is not
This session store does not work with FastBoot. In order to use Ember Simple Auth with FastBoot, configure the CookieStore as the application's session store.
Returns all data currently stored in the
localStorage as a plain object.
A promise that resolves with the data currently persisted in the store when the data has been restored successfully and rejects otherwise.
localStorage key the store persists data in.
Triggered when the session store's data changes due to an external event, e.g., from another tab or window of the same application. The session handles that event, passes the updated data to its authenticator's restore method and handles the result of that invocation accordingly.
The updated session data