The API docs for the cookie store are available here
This is an extension to the Ember Simple Auth library that provides a cookie
based session store. It offers the same functionality as the standard
localStorage
based store but also supports older browsers that don't
support the locaStorage
API.
The Cookie Store can be configured via the application's environment object:
//config/environment.js
ENV['simple-auth'] = {
store: 'simple-auth-session-store:cookie'
}
To install Ember Simple Auth Cookie Store in an Ember.js application there are several options:
-
If you're using Ember CLI, just add the Ember CLI Addon to your project and Ember Simple Auth Cookie Store will setup itself.
-
The Ember Simple Auth Cookie Store extenion library is also included in the "ember-simple-auth" bower package both in a browserified version as well as an AMD build. If you're using the AMD build from bower be sure to require the autoloader:
require('simple-auth-cookie-store/ember');
The browserified version will, like the Ember CLI addon, also setup itself once it is loaded in the application.
-
Download a prebuilt version from the releases page