Skip to content

Commit 95f378f

Browse files
Update README.md
1 parent a6198cf commit 95f378f

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

README.md

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,19 +14,17 @@ You will need a [WorkOS account](https://dashboard.workos.com/signup).
1414

1515
2. After creating the redirect URI, navigate to the API keys tab and copy the _Client ID_ and the _Secret Key_. Rename the `.env.local.example` file to `.env.local` and supply your Client ID and API key as environment variables.
1616

17-
3. Additionally, [create a signing secret](https://workos.com/docs/user-management/3-handle-the-user-session/create-a-signing-secret) by running the below command. Copy the output into the environment variable `JWT_SECRET_KEY`.
17+
3. Additionally, create a cookie password as the private key used to encrypt the session cookie. Copy the output into the environment variable `WORKOS_COOKIE_PASSWORD`.
1818

19-
```bash
20-
node -e "console.log(require('crypto').randomBytes(64).toString('base64'));"
21-
```
19+
It has to be at least 32 characters long. You can use https://1password.com/password-generator/ to generate strong passwords.
2220

2321
4. Verify your `.env.local` file has the following variables filled.
2422

2523
```bash
2624
WORKOS_CLIENT_ID=<YOUR_CLIENT_ID>
2725
WORKOS_API_KEY=<YOUR_API_SECRET_KEY>
2826
WORKOS_REDIRECT_URI=http://localhost:3000/callback
29-
JWT_SECRET_KEY=<YOUR_JWT_SECRET_KEY>
27+
WORKOS_COOKIE_PASSWORD=<YOUR_COOKIE_PASSWORD>
3028
```
3129

3230
5. Run the following command and navigate to [http://localhost:3000](http://localhost:3000).

0 commit comments

Comments
 (0)