Skip to content

Commit 0150d52

Browse files
authored
Update authentication.md
1 parent aae45a1 commit 0150d52

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

docusaurus/docs/dev-docs/backend-customization/examples/authentication.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,9 +63,11 @@ Additional information about JWT authentication can be found in the [Users & Per
6363

6464
**🧑‍💻 Code example:**
6565

66-
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:
66+
:::prerequisites
67+
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.
68+
:::
6769

68-
This file uses the formik package - install it using `yarn add formik` and restart the dev server
70+
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:
6971

7072
```jsx title="/client/pages/auth/login.js" {21-27}
7173

0 commit comments

Comments
 (0)