user.js 325 B

1234567891011121314151617
  1. export function User(params = {}) {
  2. return {
  3. id: '1',
  4. username: 'foo@example.com',
  5. email: 'foo@example.com',
  6. name: 'Foo Bar',
  7. isAuthenticated: true,
  8. options: {
  9. timezone: 'UTC',
  10. },
  11. hasPasswordAuth: true,
  12. flags: {
  13. newsletter_consent_prompt: false,
  14. },
  15. ...params,
  16. };
  17. }