Skip to content

Commit

Permalink
🚑 Include 'old' name "getPortalToken" so it doesn't break ACL
Browse files Browse the repository at this point in the history
  • Loading branch information
mariush2 committed Dec 18, 2024
1 parent d7f379e commit e2830b0
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
5 changes: 5 additions & 0 deletions src/api/core/OpenAPI.ts
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,11 @@ export const getJSEmbarkToken = async (): Promise<string> => {
);
};

/**
* @deprecated - Use getJSEmbarkToken instead
*/
export const getPortalToken = () => getJSEmbarkToken();

const getJSEmbarkProdToken = async () => {
return getToken(
`amplify-portal-production`,
Expand Down
8 changes: 7 additions & 1 deletion src/api/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,15 @@
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */

export { ApiError } from './core/ApiError';
export { CancelablePromise, CancelError } from './core/CancelablePromise';
export { OpenAPI_APP, getJSEmbarkToken, getSAMToken } from './core/OpenAPI';
export {
OpenAPI_APP,
getJSEmbarkToken,
getSAMToken,
getPortalToken,
} from './core/OpenAPI';
export { request } from './core/request';
export type { OpenAPIConfig } from './core/OpenAPI';

Expand Down

0 comments on commit e2830b0

Please sign in to comment.