hasandev's avatar

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?

0 likes
0 replies

Please or to participate in this conversation.