Jan 13, 2019
0
Level 1
Laraval Passport Authentication Test
Hello
I am using Laravel Passport for my API authentication.
Now, there are some endpoints those are required to be authenticated to access.
However, once I use-
Passport::actingAs(
factory(User::class)->create()
);
It show's me Expected status code 200 but received 403. that means redirect to other page.
It's clearly shows that, it doesn't authenticate the user.
Any tips?
Please or to participate in this conversation.