timeoutable module for ember-auth

npm install ember-auth-module-timeoutable
7 downloads in the last week
13 downloads in the last month

timeoutable module for ember-auth

Build Status Gem Version NPM version

Timeout a signed in session after a specified period.


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

    # [number] (opt) Period (mins) before timing out a signed in session;
    #   default: 20
    period: 20

    # [function] (opt) Method to call for timing out a signed in session;
    #   default: (auth).signOut()
    callback: null


# Low-level methods for manual use

# reset the timeout period

# register a new timeout (and cancel any previously registered timeout)

# cancel any registered timeout
npm loves you