Skip to content

Commit

Permalink
Update authentication.md (#1970)
Browse files Browse the repository at this point in the history
let the developer know they need to install formik to run this example
  • Loading branch information
seanburlington authored Jan 9, 2024
1 parent a5bfe15 commit aae45a1
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,8 @@ Additional information about JWT authentication can be found in the [Users & Per

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:

This file uses the formik package - install it using `yarn add formik` and restart the dev server

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

import React from 'react';
Expand Down

1 comment on commit aae45a1

@vercel
Copy link

@vercel vercel bot commented on aae45a1 Jan 9, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

documentation – ./

documentation-git-main-strapijs.vercel.app
docs-vercel-v4.strapi.io
documentation-strapijs.vercel.app

Please sign in to comment.