From ad5107eed9479e0ebc4df1177509e61bfbd597cb Mon Sep 17 00:00:00 2001 From: azulkipli <8231792+azulkipli@users.noreply.github.com> Date: Fri, 3 Dec 2021 23:17:03 +0700 Subject: [PATCH] auth route v4 i found that default authentication route should be `/api/auth/local` --- docs/developer-docs/latest/guides/auth-request.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/developer-docs/latest/guides/auth-request.md b/docs/developer-docs/latest/guides/auth-request.md index 53583826c3..9fffff9c77 100644 --- a/docs/developer-docs/latest/guides/auth-request.md +++ b/docs/developer-docs/latest/guides/auth-request.md @@ -69,7 +69,7 @@ Finally create **2 users** with the following data. To login as a user your will have to follow the [login documentation](/developer-docs/latest/plugins/users-permissions.md#login). -Here is the API route for the authentication `/auth/local`. +Here is the API route for the authentication `/api/auth/local`. You have to request it in **POST**. @@ -80,7 +80,7 @@ You have to request it in **POST**. ```js import axios from 'axios'; -const { data } = await axios.post('http://localhost:1337/auth/local', { +const { data } = await axios.post('http://localhost:1337/api/auth/local', { identifier: 'reader@strapi.io', password: 'strapi', });