Skip to content

rmachielse/ember-simple-auth-chrome-app

Repository files navigation

Ember Simple Auth Chrome App

Build Status

This addon provides a session-store for ember-simple-auth that uses chrome.storage.local for usage in chrome apps.

Installation

ember install ember-simple-auth-chrome-app

Configuration

By default, no extra configuration is needed. If you want to extend the session-store, for example to override the key that will be used to store the session, you can import the chrome store or the adaptive store like this:

import AdaptiveStore from 'ember-simple-auth-chrome-app/session-stores/adaptive';

export AdaptiveStore.extend({
  localStorageKey: 'custom_key',
  chromeStorageKey: 'custom_key'
});