Authentication: It’s Easier Than You Think

Authentication: It’s Easier Than You Think

Theo - t3․gg

2 года назад

142,192 Просмотров

Ссылки и html тэги не поддерживаются


Комментарии:

ruslan rudenko
ruslan rudenko - 03.09.2023 13:58

so many hairs on the left eye, how can you even see screen?

Ответить
Mino Levon
Mino Levon - 10.07.2023 08:14

I will sub if u move ur hair off ur eyes and forehead 😂

Ответить
Mino Levon
Mino Levon - 10.07.2023 08:01

Just make sure to pull your hair back to not cover ur eyes. Makes u detect bugs and typos faster

Ответить
Jorge Diaz
Jorge Diaz - 21.06.2023 22:23

This dude is really just over complicating things for absolutely no reason other than he loves to hear himself talk.

Ответить
Greg Hammond
Greg Hammond - 16.06.2023 01:07

waiting for "Auth: It's Harder Than You Think"

Ответить
Joydeep Bhowmik
Joydeep Bhowmik - 25.05.2023 10:11

no its not

Ответить
OnePunch Man
OnePunch Man - 18.05.2023 19:02

please do a video with sessions and express-session

Ответить
Emanon
Emanon - 01.05.2023 03:02

All makes sense.. but, your strategy (in your example with nextjs) is a single page... what if you have a bunch of files or folders that require authentication ( while others do not ). Having that "check session method", in all those places seems terrible.

What is your strategy for many folders/files that need auth?

Ответить
mind bender
mind bender - 25.04.2023 15:10

Great content bro,
btw what is T3?

Ответить
MrRecorder1
MrRecorder1 - 19.04.2023 01:29

Who else was thinking about Kerberos while listening to this? XD

Ответить
kdakan
kdakan - 18.04.2023 00:05

You're assuming the backend api will be only used by a web browser. Cookies won't work on all clients, JWT is the better solution.

Ответить
Chris Habgood
Chris Habgood - 11.04.2023 19:54

could you get the permissions and put it a global store on login?

Ответить
Obaid
Obaid - 27.03.2023 07:55

Clerk has solved Auth

Ответить
Helder Araujo
Helder Araujo - 05.03.2023 20:55

There is any way to implement it, with two factor authentication on google generator or 1Password api?

Ответить
Ayush Seth - Guitar Covers
Ayush Seth - Guitar Covers - 25.02.2023 12:56

Can you make a video about middleware and pros and cons of handling protected pages in middleware vs at page level?

Ответить
Daniel Li
Daniel Li - 20.02.2023 08:55

It wasn't in fact easier than you thought

Ответить
Webmaster
Webmaster - 18.02.2023 08:34

After the video, I have a LOT more questions about auth.

Ответить
Amr Ashebo
Amr Ashebo - 08.02.2023 15:56

What theme do you use?

Ответить
pushpak gupta
pushpak gupta - 02.02.2023 07:33

This is really awesome. And I haven't even watched the full video.

Ответить
Stu Peyca
Stu Peyca - 02.02.2023 05:03

Thanks for sharing such valuable information. This walkthrough helped me a lot to understand better some things I couldn't grasp that well by myself.

Ответить
Zighy Blue
Zighy Blue - 17.12.2022 15:33

You forgot the sign up process, email validation, eventually phone too, use Google login or Facebook login, Oauth, websso, etc... In the real world it's not so simple as you describe on your school video...

Ответить
Nickolas Papazoglou
Nickolas Papazoglou - 15.12.2022 23:28

Hey guys I am watching this as I'm learning nextAuth for the first time and I was happy to understand a lot of things (code wise at least) for once BUT what he said about JWTs got me confused. Wasn't he using JWTs in this very example? Are there other ways? Aren't JWTs secure?

Ответить
Finn
Finn - 08.12.2022 00:33

thanks a looot! :)

Ответить
Salvador D.
Salvador D. - 05.12.2022 03:10

This is gold. I learned authorization with JWT a week ago and I've been stuck fot two days trying to implement it well, been searching a lot of tutorials and steps when actually I needed a general explanation of the authorization concept (I was getting confused with localStorage because I thought it was a bit insecure, which I learned to be true in this video lol). Maybe JWT wasn't the best place to start. Really helpful vid

Ответить
Of mouse and man
Of mouse and man - 22.11.2022 20:09

i'm not sure about the "cookie" part... I mean "document.cookie" is pretty accessible by JS... in fact as much as Local Storage.... plus, since the cookie is applied to every request, you are vulnerable to CSRF unless you put an extra header, or validation....

I like the idea of JWT, i'm all for your "stop putting shit in JWT" as such as if you change user permissions, if they are "on the server" they can be changed on the fly, as if they are "on the client" the token must be refreshed at every change.

For me auth is
4 routes: /login, /register, /forgot, /reset
and Middleware(s) on the server

if you want to store sessions of validate JWT is seems that thats all you have to think about (unless you want to complicate it)

Ответить
Mihkal
Mihkal - 22.11.2022 19:19

That's great but if you're doing offline-first you have to look at the storage.

Ответить
FreeDom Sy
FreeDom Sy - 01.11.2022 14:36

Why is JWT bad I don't understand? Why is storing JWT in localStorage bad???

Ответить
Shashank Singh
Shashank Singh - 23.10.2022 19:06

A self learned dev like me who will be working as a freelancer in a few months badly needs this

Ответить
Adon Irani
Adon Irani - 23.10.2022 17:50

I get a LOT out of the videos. I love learning where my thinking is not up to speed

Ответить
João
João - 23.10.2022 16:31

Nice video! Is this codebase available to clone ?

Ответить
Raflord
Raflord - 17.10.2022 14:45

I've watched this video before and didn't understand shit, now I'm building a app using T3 stack and this made so much sense, and helped me a lot. Thanks Theo, keep up the great work, you are inspiring

Ответить
Rammehar
Rammehar - 17.10.2022 12:54

Hey bro nice explaination with example. thanks for this. But I have a questions How to implement accessToken and RefreshToken login with Nextjs, Redux toolkit with Own backend (Express)

Ответить
josh hoffer
josh hoffer - 08.10.2022 08:18

Dude thank god. im one min in and you already broke the spell of frustration that comes any time i want to look any video up...

1 ... Your making a video in your FIRST language, not your third. (no offense to anyone but it's very confusing why people who want to give technical tutorial lessons in a language that they struggle to speak... I give them credit for knowing multiple languages, but it's very hard to understand abstract concepts / nomenclature when the person has a thick ... accent

2.. your not going for the MOST LONG TAIL STACK POSSIBLE... yea this is gonna be auth except its routed through your frontend ... but you need to use this one module which is only available on a version of node that isnt compatable with the rest of your stack. and is outdated in a few months.

3... you actually giving some details about the stuff your doing.... it seems that most people that do the above 2... just FLY through the details , -> or have a shitty streaming setup...

all to say... keep up the good work you got a sub here.

Ответить
Daniel Julien
Daniel Julien - 01.10.2022 06:28

thank you for this video!!! clears out a lot of things in my head 🚀

Ответить
Ca
Ca - 27.09.2022 16:27

What about if I need to share this users list across multiple projects ( auth microservice I guess ) but still need oAuth and next-auth ?

Ответить
Tarek Ghosn
Tarek Ghosn - 25.09.2022 15:33

love your channel man
even at 1mill still will be underrated

Ответить
anas ouardini
anas ouardini - 01.09.2022 01:38

CORRECTION: storing stuff in a cookie doesn't make it any secure what so ever. so it doesn't really matter just use the easiest way for your project.
considering a 2FA is always better(more secure), "and annoying"
also requesting stuff when you need it is SLOW and purposeless and adds 0 percent of security, unless you consider making it a little bit(maybe like 5%) harder(from the attacker's end) "more secure"

Ответить
Liran Piade
Liran Piade - 19.08.2022 12:31

My issue is that filtering which parts of the frontend are shown on the server isn't as doable on a SPA + other-language-backend setup

Ответить
auf keinsten
auf keinsten - 16.08.2022 16:27

I love this style of notepad-teaching, it's a lot less sterile and boring than most videos on these topics. Hoping for a lot more videos like this!

Ответить
Rakesh Kumar
Rakesh Kumar - 28.07.2022 15:30

Crystal clear explanation. Thanks a lot :-)

Ответить
BeeJay
BeeJay - 28.07.2022 04:06

Wow...

Ответить
Esra Erimez
Esra Erimez - 27.07.2022 17:14

This information was very informative. The enjoyability was enjoyable. This video contained its contents.

Ответить
SogMosee
SogMosee - 26.07.2022 20:48

if milo yiannopoulos became a coder

Ответить