diff --git a/docusaurus/docs/dev-docs/backend-customization/examples/authentication.md b/docusaurus/docs/dev-docs/backend-customization/examples/authentication.md index 1f523bca33..b4645886fc 100644 --- a/docusaurus/docs/dev-docs/backend-customization/examples/authentication.md +++ b/docusaurus/docs/dev-docs/backend-customization/examples/authentication.md @@ -63,9 +63,11 @@ Additional information about JWT authentication can be found in the [Users & Per **🧑‍💻 Code example:** -To achieve this, in the `/client` folder of the [FoodAdvisor](https://github.com/strapi/foodadvisor) project, you could create a `pages/auth/login.js` file that contains the following example code. Highlighted lines show the request sent to the `/auth/local` route provided by Strapi's Users & Permissions plugin: +:::prerequisites +The code example in this section uses the [formik](https://formik.org/) package. Install it using `yarn add formik` or `npm install formik` and restart the dev server. +::: -This file uses the formik package - install it using `yarn add formik` and restart the dev server +To achieve this, in the `/client` folder of the [FoodAdvisor](https://github.com/strapi/foodadvisor) project, you could create a `pages/auth/login.js` file that contains the following example code. Highlighted lines show the request sent to the `/auth/local` route provided by Strapi's Users & Permissions plugin: ```jsx title="/client/pages/auth/login.js" {21-27}