ember data integration module for ember-auth

npm install ember-auth-module-ember-data
14 downloads in the last month

ember-data integration module for ember-auth

Build Status Gem Version NPM version

  1. injects signed in session data (if any) to all ember-data server requests
  2. optional: auto-loads an ember-data user model upon sign in


App.Auth = Em.Auth.extend
  modules: ['emberData']

    # [string|false] enable auto-loading user model by setting this to a
    #   model type, as in store.find(userModel, id);
    #   or false to disable auto-loading user model
    userModel: false


@auth.user # access the auto-loaded user model
npm loves you