- 189
- 980 151
cdruc
Romania
Приєднався 17 січ 2013
Відео
How I handle panics in Golang Servers
Переглядів 37221 день тому
How I handle panics in Golang Servers
Always do this when uploading files in Golang
Переглядів 4942 місяці тому
Always do this when uploading files in Golang
Configure Golang web apps using command-line flags
Переглядів 3523 місяці тому
Configure Golang web apps using command-line flags
Session-Based Authentication in Golang
Переглядів 4,9 тис.3 місяці тому
Session-Based Authentication in Golang
Reusable Form Validation in Golang: Step-by-Step Tutorial
Переглядів 9454 місяці тому
Code snippets: github.com/druc/posty
Building a Golang Web App using SQLite
Переглядів 5 тис.4 місяці тому
Code snippets: tallpad.com/series/golang-randoms/lessons/building-and-structuring-a-golang-web-app-using-sqlite
Serving Static Files in Golang
Переглядів 5674 місяці тому
Code snippets: tallpad.com/series/golang-randoms/lessons/serve-static-files-in-golang
Caching HTML templates in Golang
Переглядів 6464 місяці тому
Code snippets: tallpad.com/series/golang-html/lessons/caching-html-templates-in-golang
Create a Reusable Layout in Golang
Переглядів 7274 місяці тому
Snippets: tallpad.com/series/golang-html/lessons/create-a-reusable-html-layout-in-golang
Gracefully Handle Template Errors in Golang
Переглядів 2644 місяці тому
Snippets: tallpad.com/series/golang-html/lessons/gracefully-handle-template-errors-in-golang
Render an HTML template in Golang
Переглядів 1,3 тис.4 місяці тому
Code and notes/FAQ: tallpad.com/series/golang-html/lessons/render-an-html-template-in-golang
Routing in golang
Переглядів 9205 місяців тому
Go version: 1.22.4 Timestamps: 0:00 - Intro 0:12 - Starting a server 0:36 - Router 0:53 - Fixed paths 1:33 - Subtree paths 1:57 - 404 matching 2:40 - Dynamic paths 2:50 - Overlapping paths 3:26 - Request methods 4:22 - Route and query parameters 4:50 - Optional route parameters
Golang routing - a dangerous mistake
Переглядів 6835 місяців тому
Golang routing - a dangerous mistake
Laravel Sanctum 401 Unauthenticated
Переглядів 2,8 тис.7 місяців тому
Laravel Sanctum 401 Unauthenticated
419 CSRF Token Mismatch - Laravel Sanctum
Переглядів 7 тис.7 місяців тому
419 CSRF Token Mismatch - Laravel Sanctum
Debugging Laravel Sanctum CORS errors
Переглядів 3,1 тис.7 місяців тому
Debugging Laravel Sanctum CORS errors
Laravel Authentication for React Native Apps using Breeze and Sanctum
Переглядів 9 тис.8 місяців тому
Laravel Authentication for React Native Apps using Breeze and Sanctum
Laravel Sanctum Google Authentication
Переглядів 6 тис.9 місяців тому
Laravel Sanctum Google Authentication
Storing Auth Tokens in LocalStorage
Переглядів 40 тис.10 місяців тому
Storing Auth Tokens in LocalStorage
Laravel Sancum - automatic CSRF cookie retrieval
Переглядів 1,8 тис.10 місяців тому
Laravel Sancum - automatic CSRF cookie retrieval
Laravel "Remember me" - How it Works
Переглядів 3,4 тис.10 місяців тому
Laravel "Remember me" - How it Works
Handling Axios Errors in Vue.js with Laravel Sanctum
Переглядів 2,2 тис.11 місяців тому
Handling Axios Errors in Vue.js with Laravel Sanctum
Is that LocalStorage user even authenticated?!
Переглядів 1,2 тис.11 місяців тому
Is that LocalStorage user even authenticated?!
TypeScript Types for Laravel Validation Errors
Переглядів 1,1 тис.11 місяців тому
TypeScript Types for Laravel Validation Errors
Great video, thanks
pls make real world project with laravel typescript vue , I like the way you explain
wow onScopeDispose is very useful and it reduces a lot of complexity to handle unmout stuff
thank you, it's help me loat....
Would be a lot better if you can provide a repo :)
Hi there ! How would you handle token revalidation ? I'm using symfony and in my case I have a revalidation token and specific route to call laravek doesn't have this behavior ?
hello from what I can remember there's no revalidation/refresh tokens using laravel sanctum. if you need that you'd probably have to adjust/build it yourself.
Out of curiosity, what purpose does the device_name serve?
this is very helpful. its the best video . thanks for this
Thanks very much, it helped a lot!
can you show getCookie code?
Can you make a video on how template composition works. I'm coming from Jinja2 and find it difficult to understand how templates work in go
I find Golang so simple that, to me, its beautiful.
Great tutorial! Thanks for providing it.
Hi, may I ask what font you're using, looks so nice 😅😅
ibm plex mono
Bro at least give one video per week.
Why do we have to login everytime after getting the xsrf token and laravel session before we can access the protected route? Is there a workaround thats the issue am currently facing
you shouldnt have to. something is wrong in your setup
After a lot of debug, I was able to solve it just now by implementing my own login logic instead of using Breeze auth api provided by defaults
What's the name of your vs code's color theme please
wow very straight forward! thanks
Bro you saved my life. Your video should be included in official docs
you from Iași?
Why is the CSRF token generated previously of login? I mean I thought, it's not necessary that the user have any ID if he doesn't identify, doesn't it?
the token is associated to the session id. and every visitor, logged in or not, has one
@@cdruc Thanks for answer, Your content is pretty good. I hope your channel grows much more; it deserves it 😋😋
how about performance if we have a ton of value in that array?
what is timmy generate?
just me making fun of chatgippidy before it comes and takes my job
Great explanation!
Good sir my issue fixed
Exatamente o que eu tava procurando, valeu demais 🎉
I want to know that we will put route /login in web.php, after authenticated and get access token, all api link i request with different methods can re-use authenticated session?
This is the most clearly video explain about Laravel Sanctum and Cookie based. Thanks so much!! ❤
Great video! The current stacks like Next.js and Prisma feel too abstract-it's refreshing to see everything work with basic HTTP server, raw SQL and scanners, and native HTML form method!
Ofcourse your video is amazing for beginners. If you provide GitHub link that is helpful for us.
Cookie is sent but same way in header isn't csrf cookie also sent by browser .
Extremely helpful, thanks a lot!!
Which theme / font are you using in VsCode ?
You explain it so perfectly!
I love you, man
a great video but i have a problem the html dose not render the posts and i loged the posts before sending them to html and there is posts avilable but no data to render ?
that's weird if you send me a repo link, I'll gladly have a look!
You are a saviour man, thnak you!
i dont know but i think i watched your laravel sanctum videos but im still getting 419 errordamn
Oh man thanks a lot!!. I had already given up on Sanctum and was going to replace it with jwt or bearer tokens until I saw your video. You're the best!!
Today i completed this tasks, and learned how to use v-bind. Thanks, guy!
I don't get how you can build an API... Where you're using postman or similar. You're not coming from a server, just a desktop app .. what does the server/VM running the API think the referer is? There's no website making the request... Just an app. Really confuses me
you add the referer header yourself: Laravel Sanctum and Postman ua-cam.com/video/My61OicxPRo/v-deo.html
💘 awesome
The "CSRF Missmatch" is mostly the combination of scripts and version problems. I have tested "axios" version 1.1.3 working with Laravel 9, 10, 11 all fine. I have tested "axios" vesrion 1.5.1 working with Laravel 9 & 10 but failing with 11. I have tested "axios" version above 1.6 and failing with Laravel 9, 10 & 11. Can anyone else test and report?
axios 1.7 vẫn không hoạt động.
Can this be used for Google authentication on mobile app?
I try to do this but it always execute what it is in the clousure
In that matter there is no difference between browser side cookie vs local storage, the general best practice is to store it as "HttpOnly" server-side, but I do not see that when client and backend are separately developed.
Learning go as my 3rd language. I did not you can parse json that way. Thanks a lot for the very interesting project.
Maybe you can make a nice tutorial of laravel reverb with react native also? Cannot find a lot about it but i am very curious how this works.
Hello, is it possible to use this as reference material? I'm learning Go and would like to buikd along with you with my own ouch, and am asking to see in case I ever put it in a public repository. (If I ever do, I will naturally leave a link to this video) Thank you!
hey, yeah, use it however you want you can find the code here as well: cdruc.com/go-weather-cli
On my local setup, My SPA is an angular app on app.domain.test:5173 My backend is on domain.test running with laravel herd I have tried everything but the cookie is just not being set in the browser