@medipha/feed 0.3.0 → 0.3.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,12 +1,9 @@
1
1
  export interface NewsfeedModuleProps {
2
2
  accessToken: string;
3
- /** When the access token expires, in epoch seconds (the JWT `exp` claim). */
4
- expireTime?: number;
5
3
  apiUrl: string;
6
4
  chatApiUrl: string;
7
5
  basePath: string;
8
6
  onUnauthorized?: () => void;
9
- onRefreshToken?: () => Promise<string>;
10
7
  onNavigateOutsideFeed?: (path: string) => void;
11
8
  /**
12
9
  * The feed never offers post creation (that lives in NewsfeedAdminModule).
@@ -1,6 +1,6 @@
1
1
  import { FeedApi } from '../../core';
2
2
  import { NewsfeedModuleProps } from '../newsfeed-module.types';
3
- type SessionProps = Pick<NewsfeedModuleProps, 'accessToken' | 'onRefreshToken' | 'onUnauthorized'>;
3
+ type SessionProps = Pick<NewsfeedModuleProps, 'accessToken' | 'onUnauthorized'>;
4
4
  export declare class FeedSession {
5
5
  readonly api: FeedApi;
6
6
  private props;
@@ -8,6 +8,5 @@ export declare class FeedSession {
8
8
  /** The chat service is a different API, so the share modal needs the current token itself. */
9
9
  getAccessToken: () => string;
10
10
  update(props: SessionProps): void;
11
- private refreshAccessToken;
12
11
  }
13
12
  export {};
@@ -2,7 +2,6 @@ import { QueryParams } from './query-string';
2
2
  export interface FeedApiConfig {
3
3
  apiBaseUrl: string;
4
4
  getAccessToken: () => string | null;
5
- onRefreshToken?: () => Promise<string>;
6
5
  onUnauthorized?: () => void;
7
6
  fetchImpl?: typeof fetch;
8
7
  }