How do I Authenticate my Users in Go/TypeScript?

preview_player
Показать описание
I use Auth0 for my authentication. Why? I don't like super sensitive info in my database if I can help it, and it provides a ton of super nice features that save me a ton of time and effort.

Today I am showcasing an example app I built that implements auth in a GoLang web server and a React app created with Vite.

#authentication #golang #typescript
Рекомендации по теме
Комментарии
Автор

"I am not right all the time, tell me that Im wrong and I will do everything in my power to make it right." Your honesty, modesty, and integrity made me sub. Keep up the great work!

CodeWithCypert
Автор

Bro you are goated with the sauce, and helped me and team set up Auth0 (and almost Zitadel) for our Go backend with Fiber! Thanks!

Koulant
Автор

I'm "junior" that aspire to learn golang someday, I'm happy your content exist

voychoi
Автор

Man, you're really making good content, and i'm glad i discovered your channel, keep it up young man, keep the hustle !

mikealejandro
Автор

I don't mind implementing my own authentication but it's a fact that using third party services like Auth0 is way easier, especially when you start dealing with authorization (roles & permissions).

GabrielGasp
Автор

That’s a smart move. I implemented auth server myself but constantly worried that I could miss something

artemcodes
Автор

for my sideprojects, i would avoid using any 3rd parties for anything and do everything on my own from Auth, server maintenance, networking, security, databases and everything in between but when it comes to prod stuff, i run back to the 3rd parties not because i don't know/understand how to implement and maintain but because am scared of what might happen and i don't wanna know! 🤣🤣💀, recently i ran to AWS KMS in order to avoid having to manage and audit my keys that i use to encrypt Passport numbers, i guess less overhead! 💀💀, but i would say this, if i worked at a company and was surrounded by systems engineers, network engineers, database engineers and devops engineers, i would be running away from 3rd parties cause they can just flip a switch and your business is gone overnight!. btw good videos please keep em coming. 😊

abdirahmann
Автор

You have an extremely bright future ahead of you my friend. Keep up the work.

driftFD
Автор

Really getting into Go because of your videos. I'd love to see your take on GraphQL API w/ Go! Thanks Ben

softwayre
Автор

Hi ben, looks like you've taken some feedback on board. I would be wary about using log.Fatal as it is essentially a print() followed by os.Exit(). It doesnt call any of your deferred functions meaning your database wont be closed properly!

dandogamer
Автор

Would love to have a video on "context" in golang...

denilbhatt
Автор

Hey great video.
JUst a little question.
When I manage my own auth I can get the ID of the user to then link it on other table like todos or orders etc. How should I do it with 0Auth ?

baptisteleroyer
Автор

I know you are busy, so don't feel any way if you can't answer this directly - but I am planning on using Netlify to host the front end of my sales/advertising website, and with either Supabase/Firebase as a backend, as the sales/advertising site will just enable users to create a free account and/or make payment for the actual main service I will be offering...

Having watched your videos, and so that I can fully own the actual main app infrastructure, I am now thinking of hosting the main service and its backend on a VM, that I can scale vertically as needed, and using Fiber/Pocketbase - as I found your videos on Pocket base and Fiber v useful indeed...

The reason I am thinking of using Netlify at least for the sales/marketing site is so that users from the USA, Europe, the UK and Japan will all get good load times - and the main service, which will be quite a bit more complex, I can host on a VM with a provider like GCP/AWS and sync user account/payment confirmations from the Netlify sales site, to the main apps VM, via Netlify cloud functions - as customers of my main service will have downloaded a client app that installs on their computers (not phones) and which will need low-latency connectivity to the backend service/VM regardless of their location - so I was thinking that providers like GCP/AWS due to their core global infrastructure, would be a good choice... (I was previously considering using Firebase to provide low latency messaging between my service and the client app running on customers computers regardless of their location)

I know this may be way too much of an opened ended question, but does this sound sane to you? As I said, don't worry if you can't give any thoughts directly, but maybe if you can touch upon any of the issues I'm raising, in future vids - that would be really useful!

Cheers!

themarksmith
Автор

can you make a video talking about auth and user group and how you manage it in the client

benjaminarmijoguzman
Автор

how do you get that interface that has the url to the server and the response from inside vscode? Is this part of the GO tools?

rickr
Автор

Does Golang work with Next Js / sveltekit or is this not practical?

niklasw
Автор

So you don't like to store you own clients sensitive data but you love storing it in a stranger database? That's weird

lotfikamel
Автор

Have you ever tried that with graphql? Please dive deep into graphql if you think it's an equally amazing technology

fredrickdenga
join shbcf.ru