apiToken.js 203 B

12345678
  1. export function ApiToken(params = {}) {
  2. return {
  3. token: 'apitoken123',
  4. dateCreated: new Date('Thu Jan 11 2018 18:01:41 GMT-0800 (PST)'),
  5. scopes: ['scope1', 'scope2'],
  6. ...params,
  7. };
  8. }