ff-stream-web

git clone git://archive.git.mtrnord.blog/MTRNord/ff-stream-web.git
Log | Files | Refs | README | LICENSE

me.js (489B)


      1 /**
      2  * React Starter Kit (https://www.reactstarterkit.com/)
      3  *
      4  * Copyright © 2014-present Kriasoft, LLC. All rights reserved.
      5  *
      6  * This source code is licensed under the MIT license found in the
      7  * LICENSE.txt file in the root directory of this source tree.
      8  */
      9 
     10 import UserType from '../types/UserType';
     11 
     12 const me = {
     13   type: UserType,
     14   resolve({ request }) {
     15     return request.user && {
     16       id: request.user.id,
     17       email: request.user.email,
     18     };
     19   },
     20 };
     21 
     22 export default me;