sentryAppToken.tsx 422 B

1234567891011121314151617
  1. import {InternalAppApiToken} from 'sentry/types';
  2. export function SentryAppToken(
  3. params: Partial<InternalAppApiToken> = {}
  4. ): InternalAppApiToken {
  5. return {
  6. token: '123456123456123456123456-token',
  7. dateCreated: '2019-03-02T18:30:26Z',
  8. scopes: [],
  9. refreshToken: '123456123456123456123456-refreshtoken',
  10. expiresAt: '',
  11. application: null,
  12. id: '1',
  13. state: 'active',
  14. ...params,
  15. };
  16. }