import type { IDataSource } from "@erp/core/client"; import type { CurrentSessionResponseDTO } from "@erp/identity/common"; export function getCurrentSession( dataSource: IDataSource, accessToken: string ): Promise { return dataSource.custom, CurrentSessionResponseDTO>({ path: "identity/auth/session", method: "get", headers: { Authorization: `Bearer ${accessToken}`, }, data: {}, }); }