[v5] Error: `import-data` must be used within `Auth` on my custom plugin page
<!--
Hello 👋 Thank you for submitting an issue.

Before you start, please make sure your issue is understandable and reproducible.
To make your issue readable make sure you use valid Markdown syntax.

https://guides.github.com/features/mastering-markdown/

Please ensure you have also read and understand the contributing guide.

https://github.com/strapi/strapi/blob/main/CONTRIBUTING.md#reporting-an-issue
-->

## Bug report

### Required System information

<!-- Please ensure you are using the Node LTS version (18, 20, or 22) -->
<!-- Strapi v3 is no longer supported, please update to Strapi v4 -->
<!-- If you are reporting a frontend bug please provide error logs after setting STRAPI_ENFORCE_SOURCEMAPS=true in your .env -->
<!-- This environment variable makes frontend errors easier to read and trace -->

- Node.js version: 20.17.0
- NPM version: 10.8.2
- Strapi version: 5.4.2
- Database: PostGres
- Operating system: Debian GNU/Linux 12
- Is your project Javascript or Typescript: Typescript

<!-- Did you know you can run `yarn strapi report` or `npm run strapi report` to get this information easier? -->

### Describe the bug

When getting connected and opening the custom plugin page i've made, i end up on that error :

```
Error: `import-data` must be used within `Auth`
    at [url]/App-BBWGupo0-LDODGSRr.js:2196:6834
    at put ([url]/App-BBWGupo0-LDODGSRr.js:2196:6045)
    at i ([url]/App-BBWGupo0-LDODGSRr.js:2196:6801)
    at A7n ([url]/App-BBWGupo0-LDODGSRr.js:17331:274)
    at ay ([url]/strapi-Cb_zPvIA.js:199:383)
    at Aye ([url]/strapi-Cb_zPvIA.js:215:9953)
    at rW ([url]/strapi-Cb_zPvIA.js:217:11989)
    at aj ([url]/strapi-Cb_zPvIA.js:234:2160)
    at NW ([url]/strapi-Cb_zPvIA.js:230:22343)
    at Zbe ([url]/strapi-Cb_zPvIA.js:230:21945)
```
(the [url] parameter replace the current url)      

### Steps to reproduce the behavior

1. Deploy custom plugin
2. Click on the plugin menu on left side menu
4. See error

### Expected behavior

Should open the first page of the custom plugin

### Screenshots

<img width="1116" alt="Screenshot 2024-11-29 at 14 20 05" src="https://github.com/user-attachments/assets/ad5862ef-ea0a-4d05-ae82-48aaf051fd0d">

### Additional context

At first, i thought the permission settings were mandatory so i added them but i still have the error. Everything is fine on my local machine but once it's on the distant server it's displaying the error.
