Skip to content

Commit 3467fee

Browse files
committed
fix errors
1 parent 2a58740 commit 3467fee

File tree

1 file changed

+13
-12
lines changed

1 file changed

+13
-12
lines changed

articles/playwright-testing/how-to-manage-authentication.md

Lines changed: 13 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -80,24 +80,25 @@ To enable authentication using access tokens:
8080

8181
1. Set up your environment
8282

83-
To set up your environment, you have to configure the `PLAYWRIGHT_SERVICE_ACCESS_TOKEN` environment variable with the value you obtained in the previous steps. Make sure this environment variable is available in your setup where you are running tests.
83+
To set up your environment, you have to configure the `PLAYWRIGHT_SERVICE_ACCESS_TOKEN` environment variable with the value you obtained in the previous steps. Make sure this environment variable is available in your setup where you are running tests.
8484

8585
::: zone pivot="playwright-test-runner"
86-
We recommend that you use the `dotenv` module to manage your environment. With `dotenv`, you define your environment variables in the `.env` file.
8786

88-
1. Add the `dotenv` module to your project:
87+
We recommend that you use the `dotenv` module to manage your environment. With `dotenv`, you define your environment variables in the `.env` file.
8988

90-
```shell
91-
npm i --save-dev dotenv
92-
```
89+
1. Add the `dotenv` module to your project:
9390

94-
1. Create a `.env` file alongside the `playwright.config.ts` file in your Playwright project:
95-
96-
```
97-
PLAYWRIGHT_SERVICE_ACCESS_TOKEN={MY-ACCESS-TOKEN}
98-
```
91+
```shell
92+
npm i --save-dev dotenv
93+
```
94+
95+
1. Create a `.env` file alongside the `playwright.config.ts` file in your Playwright project:
96+
97+
```
98+
PLAYWRIGHT_SERVICE_ACCESS_TOKEN={MY-ACCESS-TOKEN}
99+
```
99100

100-
Make sure to replace the `{MY-ACCESS-TOKEN}` text placeholder with the value you copied earlier.
101+
Make sure to replace the `{MY-ACCESS-TOKEN}` text placeholder with the value you copied earlier.
101102

102103
::: zone-end
103104

0 commit comments

Comments
 (0)