docs: Fix authenticate-api-requests doc

Signed-off-by: Sergey Shevchenko <sergeyshevchdevelop@gmail.com>
This commit is contained in:
Sergey Shevchenko
2023-05-17 10:58:25 +03:00
parent 105f7129c3
commit 65b63dba5c
@@ -82,10 +82,20 @@ export const createAuthMiddleware = async (
};
```
Install cookie-parser:
```bash
# From your Backstage root directory
yarn add --cwd packages/backend cookie-parser
```
Update routes in `packages/backend/src/index.ts`:
```typescript
// packages/backend/src/index.ts from a create-app deployment
import { createAuthMiddleware } from './authMiddleware';
import cookieParser from 'cookie-parser';
// ...