Miss any of our Open RFC calls?Watch the recordings here! »

ember-auth-module-ember-model

1.0.2 • Public • Published

ember-model integration module for ember-auth

Build Status Gem Version NPM version

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

Config

App.Auth = Em.Auth.extend
  modules: ['emberModel']
 
  emberModel:
    # [string|false] enable auto-loading user model by setting this to a 
    #   *string* of the model type, as in 'App.User', not App.User 
    #   or false to disable auto-loading user model 
    userModel: false

Usage

@auth.user # access the auto-loaded user model 

Keywords

none

Install

npm i ember-auth-module-ember-model

DownloadsWeekly Downloads

4

Version

1.0.2

License

none

Last publish

Collaborators

  • avatar