Replies: 2 comments
-
oh, forgot to mention that this code is part of a laravel package being created using orchestra/testbench As, said earlier when the package is installed in a regular laravel application and using Nuxt.js application the authentication is working fine in SPA mode. |
Beta Was this translation helpful? Give feedback.
0 replies
-
Good day, |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I have written custom login function for session based authentication using Sanctum.
In the test when $request->session()->regenerate(); is used I am getting 500 (Server Error). Commenting this line passes the test.
With this line, i am able to login using Nuxt.js application.
So, in order to pass the test I am checking the "username" using during tests and conditionally removing $request->session()->regenerate(); line.
How do I resolve this issue, I do not want to have the workaround code in the Controller not want to comment the line each time I run the tests.
The AuthController@login()
tests/Feature/AuthTest.php
Error when the test is run
Beta Was this translation helpful? Give feedback.
All reactions