Wow! Awesome! Very well done. I really appreciate the teaching style where you first show an implementation and then refactor it in the same breath. I would love to see how you handle authorization as well in a Laravel + React Native Application.
Fascinating! I followed the video and everything worked perfectly. I would have liked for you to use Laravel Breeze API authentication instead of creating the controllers since the main difference I find is that you don't use CSRF or token cookies. Nonetheless, I greatly appreciate your contribution!
Hello please I'm working on a VTU website using Laravel 11 as the backend and a native app. I want to make my website's API accessible to other VTU websites, allowing them to buy data just like my native app users can. Instead of creating separate endpoints for API and native app users, I thought of using the same endpoint for both. However, I'm unsure how to handle authentication and authorization. I noticed that the Sanctum token isn't a unique key that always returns the same value. Please help me understand how to approach this and secure my API. Thank you!
Hello bro, I'm having issues with Laravel when making a request to the endpoint. I strongly suspect it's because I'm reusing a project with Laravel 11, which has been configured with Sanctum + Breeze, especially for SPAs that work with session cookies. When I make the request in React Native, the error I'm getting is 'Axios Network Error'. I haven't been able to debug much, but I noticed in the catch error it mentions 'withCredentials', which leads me to believe I should use a clean Laravel setup with Sanctum for APIs.
heyy cdruc i hope ur doing fine, im wondering if there's any information about your auth course altho with this kinda of videos you're already explain alot thanks you
Help! logout gives me the error: "cannot read property 'name' of null". for some reason it still tries to load the home screen instead of login. everything works and it does logout the user but you have to refresh before it goes to the home screen. any ideas?
Hey, that's weird. Have you made *anything* different? make sure you're getting the user from the AuthContext and that you're conditionally rendering the Homepage: ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-rBcgNKt2FZs.html
@@cdruc Hey, i've managed to get it working and returning to the login screen but i had to add '?' on the user. Welcome home, {user?.name} without the question mark on user, I click logout and get an error on the page "cannot read property 'name' of null".