packages/ember-simple-auth/addon/session-stores/cookie.js
/**
    Returns all data currently stored in the cookie as a plain object.

    @method restore
    @return {Ember.RSVP.Promise} A promise that resolves with the data currently persisted in the store when the data has been restored successfully and rejects otherwise.
    @public
  */
Returns all data currently stored in the cookie as a plain object.
Returns all data currently stored in the cookie as a plain object .
restore() {
    let data = this._read(this.get('cookieName'));
    if (isEmpty(data)) {
      return RSVP.resolve({});
    } else {
      return RSVP.resolve(JSON.parse(data));
    }
  }
restore ( ) { let data = this . _read ( this . get ( 'cookieName' ) ) ; if ( isEmpty ( data ) ) { return RSVP . resolve ( { } ) ; } else { return RSVP . resolve ( JSON . parse ( data ) ) ; } }
Returns all data currently stored in the cookie as a plain object.
Returns all data currently stored in the cookie as a plain object .