Skip to content

Commit 53a6e2b

Browse files
Remove getToken utility and upgrade Strapi dependency to ^5.13.1.
1 parent 83ded24 commit 53a6e2b

File tree

4 files changed

+9002
-7744
lines changed

4 files changed

+9002
-7744
lines changed

admin/src/pages/CalendarPage.tsx

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@ import { getTranslation } from '../utils/getTranslation';
1818
import Illo from '../components/Calendar/Illo';
1919
import { useSettings } from '../context/Settings';
2020
import pluginPermissions from '../permissions';
21-
import getToken from '../utils/getToken';
2221

2322
const CalendarPage = () => {
2423
const theme = useTheme();
@@ -159,14 +158,10 @@ const CalendarPage = () => {
159158
* ensuring that only content visible to the user is displayed on the calendar.
160159
*/
161160
if (settings.contentManager) {
162-
const token = getToken();
163161
const startFilter = `filters[$and][0][${settings.startField}][$gte]`;
164162
const endFilter = `filters[$and][1][${settings.endField}][$lte]`;
165163

166164
const data = await get(`/content-manager/collection-types/${settings.collection}`, {
167-
headers: {
168-
Authorization: `Bearer ${token}`,
169-
},
170165
params: {
171166
page: 1,
172167
pageSize: 10_000,

admin/src/utils/getToken.ts

Lines changed: 0 additions & 35 deletions
This file was deleted.

0 commit comments

Comments
 (0)