From 9bc0f11a9de5276707e8c7c47a69d52ecc0e895f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jesper=20S=C3=B8rensen?= Date: Tue, 15 Oct 2024 08:19:39 +0200 Subject: [PATCH] Update http_tests.md The instructions for making the auth plugin work together with the session auth were not working as they did not mention that session plugin was required. They now point to the session plugin instructions instead, and the part about setting the session driver has been removed, since it was made redundant --- content/docs/testing/http_tests.md | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/content/docs/testing/http_tests.md b/content/docs/testing/http_tests.md index 15a51b47..a8f4b002 100644 --- a/content/docs/testing/http_tests.md +++ b/content/docs/testing/http_tests.md @@ -336,12 +336,7 @@ export const plugins: Config['plugins'] = [ ] ``` -If you are using session-based authentication, then make sure to switch the session driver to an in-memory store. - -```dotenv -// title: .env.test -SESSION_DRIVER=memory -``` +If you are using session-based authentication, make sure to also set up the session plugin. See [Populating session store - Setup](#setup-1). That's all. Now, you may login users using the `loginAs` method. The method accepts the user object as the only argument and marks the user as logged in for the current HTTP request.