Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Login not working with Laravel + Inertia + React #567

Closed
Hernanarica opened this issue Dec 5, 2023 · 4 comments
Closed

Login not working with Laravel + Inertia + React #567

Hernanarica opened this issue Dec 5, 2023 · 4 comments

Comments

@Hernanarica
Copy link

Hello, I realized that Laravel's manual authentication does not work with inertia, I am doing everything as the documentation says but the user's credentials are not kept saved.

web.php
Captura de pantalla 2023-12-04 a las 22 57 49

AuthController
Captura de pantalla 2023-12-04 a las 22 57 40

SignIn view React
Captura de pantalla 2023-12-04 a las 22 57 54

HandleInertiaRequest
Captura de pantalla 2023-12-04 a las 23 32 19

Error
Captura de pantalla 2023-12-04 a las 23 32 38

@taylorotwell
Copy link
Contributor

I would suggest looking at how the Laravel Breeze + React Inertia stack works.

@FuzzyNat26
Copy link

Hi! @Hernanarica

I know this issue has been closed, but I've encountered the same situation. Have you made any discovery regarding this topic?

@Hernanarica
Copy link
Author

@FuzzyNat26 Hello! Yes, since I was never able to solve it from the programming side, what I did was create a new project and start everything from scratch, migrating the views, controllers, etc., etc., and the authentication now worked.

@FuzzyNat26
Copy link

Thanks for the reply.

I came across the same conclusion, which is pretty weird on what's bugged out the authentication.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants