You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If you are using session-based authentication, then make sure to switch the session driver to an in-memory store.
340
-
341
-
```dotenv
342
-
// title: .env.test
343
-
SESSION_DRIVER=memory
344
-
```
339
+
If you are using session-based authentication, make sure to also set up the session plugin. See [Populating session store - Setup](#setup-1).
345
340
346
341
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.
0 commit comments