From ed3f3556d5a7a4882454dd625956636ef971199d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Karol=20S=C3=B3jko?= Date: Fri, 27 Jan 2023 17:19:26 +0100 Subject: [PATCH] fix(snjs): recommended token ttls for e2e --- packages/snjs/README.md | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/packages/snjs/README.md b/packages/snjs/README.md index 5c663fd7e..f1748fb63 100644 --- a/packages/snjs/README.md +++ b/packages/snjs/README.md @@ -44,6 +44,19 @@ Object.assign(window, SNLibrary); To run a stable server environment for E2E tests that is up to date with production, clone the [self-hosted repository](https://github.com/standardnotes/self-hosted). Make sure you have everything set up configuration wise as in self-hosting docs. In particular, make sure the env files are created and proper values for keys are set up. +Make sure you have the following value in the env vars mentioned below. It's important to have low token TTLs for the purpose of the suite. For the most up to date values it's best to check `self-hosted` github workflows. At the moment of writting the recommended values are: +``` +# docker/auth.env +... +ACCESS_TOKEN_AGE=4 +REFRESH_TOKEN_AGE=10 +EPHEMERAL_SESSION_AGE=300 + +# .env +... +REVISIONS_FREQUENCY=5 +``` + #### Start Server For Tests (SELF-HOSTED) In the `self-hosted` folder run: