Тёмный

Laravel Authentication for React Native Apps using Breeze and Sanctum 

cdruc
Подписаться 11 тыс.
Просмотров 7 тыс.
50% 1

Опубликовано:

 

4 окт 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 48   
@bijayaprasadkuikel5162
@bijayaprasadkuikel5162 6 месяцев назад
All of these things in just 23 minutes. You are so amazing man. You are really underrated in Laravel community.
@basic-1337
@basic-1337 6 месяцев назад
THIS VIDEO DESERVE ATLEAST 100K VIEWS IDC, IM SHARING TO ALL PLACE I KNOW
@shofada
@shofada 6 месяцев назад
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.
@VinayKesharwani
@VinayKesharwani 5 месяцев назад
One of the best video I have seen on this topic! Thank you!
@andrerinas5052
@andrerinas5052 6 месяцев назад
That was simply amazing! Thank you!
@oketafred
@oketafred 6 месяцев назад
Always learning new concepts from your videos 🔥
@bowaller6892
@bowaller6892 6 месяцев назад
Awesome video as always Constantin!!! I hope to make a video with Laravel and Flutter...
@soy-luisarrieta
@soy-luisarrieta 6 месяцев назад
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!
@grim_0403
@grim_0403 3 месяца назад
hello can you please share the source code?
@millennia
@millennia 2 месяца назад
Please release a full course on react native and laravel
@fitodac
@fitodac Месяц назад
Thank you, and regards Argentina. You helped me a lot with this video.
@manishgautam2424
@manishgautam2424 6 месяцев назад
describing way was superb
@thedavistheory7674
@thedavistheory7674 6 месяцев назад
Excellent video!, btw would you at some point make a video using fortify with sanctum? I think its most interesting feature is 2fa
@Netvirux
@Netvirux Месяц назад
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!
@sevaske
@sevaske 5 месяцев назад
Subscribed, thank you
@Dev-su4mi
@Dev-su4mi 6 месяцев назад
Thanks for video! What is your vs code font?
@emekaorjiani
@emekaorjiani 5 месяцев назад
Please can you include the source code, this is what I've been looking for, thank you so much its so precise and well explained
@arpi7
@arpi7 5 месяцев назад
Did you find the source code? if so can you share?
@juliian6838
@juliian6838 3 месяца назад
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.
@khangle6872
@khangle6872 4 месяца назад
will you do another one for using socialize with react native?
@alimosbah
@alimosbah 2 месяца назад
Has the project been uploaded to github?
@holakonoob
@holakonoob 6 месяцев назад
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
@juliian6838
@juliian6838 3 месяца назад
Hey man, by the way, the laravel project is blank? or you have installed sanctum or breeze?
@cdruc
@cdruc 3 месяца назад
read the title of the video
@topalek
@topalek 6 месяцев назад
@cdruc, hi, can you update your package laravel-langscanner to laravel 11
@cdruc
@cdruc 6 месяцев назад
Lol, glad to see someone uses that. I’ll do it later today 👊
@topalek
@topalek 6 месяцев назад
@@cdruc thanks a lot
@RavleR
@RavleR 2 месяца назад
Does anybody know what is the theme?
@immortal_code
@immortal_code 6 месяцев назад
thansk alot
@kazuyuki634
@kazuyuki634 2 месяца назад
Woow i didnt think this one would work CN you also do it in flutter I wanna knowif it work there too
@cdruc
@cdruc 2 месяца назад
here’s a crazy idea: *you* do it with flutter and let us know if it worked😄 my bet is that it will
@DineshPalSingh-z7u
@DineshPalSingh-z7u Месяц назад
can i get the whole code ?
@manishgautam2424
@manishgautam2424 6 месяцев назад
are you still use this github druc
@top10acousticshowslist77
@top10acousticshowslist77 6 месяцев назад
hi can you create a video on new google place api
@SamBeale-ro2vw
@SamBeale-ro2vw 5 месяцев назад
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?
@cdruc
@cdruc 5 месяцев назад
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
@SamBeale-ro2vw
@SamBeale-ro2vw 5 месяцев назад
@@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".
@arpi7
@arpi7 5 месяцев назад
Sam, can you share the source code?
@SamBeale-ro2vw
@SamBeale-ro2vw 5 месяцев назад
Hey @@arpi7 , sure: ///////////////////// HomeScreen.tsx //////////////////////////////////////////////// export default function () { const {user, setUser} = useContext(AuthContext); async function handleLogout(): Promise { console.log('logged out!!!'); await logout(); setUser(null); } return ( Welcome home, {user?.email} ); } ////////////////////////////////////////////////////////////////////////////// /////////////////////// App.tsx /////////////////////////////////////////// const Stack = createStackNavigator(); const Tab = createBottomTabNavigator(); export default function App() { const [user, setUser] = useState(); const [status, setStatus] = useState('loading'); useEffect(() => { async function runEffect(): Promise { try { console.log('tried to load user'); const user = await loadUser(); setUser(user); } catch (e) { console.log('failed to load user', e); } setStatus('idle'); } runEffect(); }, []); if (status === 'loading') { return ; } function MyTabs() { return ( ); } return ( {!user ? ( ) : ( )} ); }
@SamBeale-ro2vw
@SamBeale-ro2vw 5 месяцев назад
Hey @@arpi7, I tried to post my code but youtube removed my comment
@manishgautam2424
@manishgautam2424 6 месяцев назад
i have the code do anyone need that
@bourchadanada8998
@bourchadanada8998 5 месяцев назад
yes please
@gillemomeni6226
@gillemomeni6226 5 месяцев назад
Yes please
@gillemomeni6226
@gillemomeni6226 5 месяцев назад
Can you share the link to your repo?
@patrykimioa3003
@patrykimioa3003 3 месяца назад
Hi, please share it
@bye835
@bye835 Месяц назад
yes
Далее
Laravel SPA Authentication - setup and common mistakes
16:55
Laravel Sanctum SPA Auth Overview
13:34
Просмотров 10 тыс.
БАГ ЕЩЕ РАБОТАЕТ?
00:26
Просмотров 270 тыс.
React Native vs Flutter - Which should you use?
22:31
Session-Based Authentication in Golang
23:36
Просмотров 1,9 тыс.
Laravel vs Rails for Javascript developers
19:50
Просмотров 3,8 тыс.
Authorization in Laravel: Can You Do That?
8:29
Просмотров 9 тыс.
EASY React Animation with useGSAP()
12:45
Просмотров 97 тыс.
Laravel Sanctum and Postman
13:54
Просмотров 11 тыс.
Learnings from our multi-tenant Laravel application
9:58
Can Cursor AI build my React Native App?
18:44
Просмотров 13 тыс.