import AdaptiveStore from 'ember-simple-auth/session-stores/adaptive';
This is the default store that Ember Simple Auth will use when the application doesn't define a custom store.
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.
data in the
localStorage if it is available or in a cookie
if it is not.
The data to persist
A promise that resolves when the data has successfully been persisted and rejects otherwise.
Returns all data currently stored in the
localStorage if that is
available - or if it is not, in the cookie - 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.
The expiration time for the cookie in seconds if
localStorage is not
available. A value of
null will make the cookie a session cookie that
expires and gets deleted when the browser is closed.
The name of the cookie to use if
localStorage is not available.
The path to use for the cookie, e.g., "/", "/something".
localStorage key the store persists data in if
- The updated session data