Skip to content

Commit aae45a1

Browse files
Update authentication.md (#1970)
let the developer know they need to install formik to run this example
1 parent a5bfe15 commit aae45a1

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,8 @@ Additional information about JWT authentication can be found in the [Users & Per
6565

6666
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:
6767

68+
This file uses the formik package - install it using `yarn add formik` and restart the dev server
69+
6870
```jsx title="/client/pages/auth/login.js" {21-27}
6971

7072
import React from 'react';

0 commit comments

Comments
 (0)