Auth0 in 100 Seconds // And beyond with a Next.js Authentication Tutorial

  Рет қаралды 481,067

Fireship

Fireship

Күн бұрын

Пікірлер: 269
@Fireship
@Fireship 3 жыл бұрын
I’ve used Auth0 in several projects and nothing comes close when you need advanced auth features. Here’s 7,000 free users to get started bit.ly/3peoMQ4
@ShashotoANur
@ShashotoANur 3 жыл бұрын
There are no replies 😶
@tenslider6722
@tenslider6722 3 жыл бұрын
I have a stupid question, in case Auth0 servers are down for whatever reason, does that mean users for my app won't be able to login?
3 жыл бұрын
Timestamps pls (in the description)
@zyansheep
@zyansheep 3 жыл бұрын
@@tenslider6722 very astute observation. Better self-host...
@RamanandSingh
@RamanandSingh 3 жыл бұрын
Yo
@merlijnvanlent
@merlijnvanlent 3 жыл бұрын
These beyond 100 seconds segments are always interesting. keep up the great work!
@ChrysusTV
@ChrysusTV 3 жыл бұрын
Auth0 looks cool, but when I consider future scaling needs, it's quite expensive. Maybe something to consider once revenue can be predicted. For now I'm using Firebase Authentication (probably as a result of a video from this channel, but I don't remember).
@mooshy5944
@mooshy5944 3 жыл бұрын
This. If you're building a personal project and don't anticipate getting a lot of users Auth0 makes sense, if you're anticipating a lot more user sign ups I would suggest something like AWS Cognito or just building your own. Switching to another auth provider later is damn near impossible so choose wisely.
@ZephrymWOW
@ZephrymWOW 3 жыл бұрын
@@mooshy5944 switching auth providers is far from "damn near impossible". It is probably one of the easier migrations to do.
@TheBillionDollarSaaS
@TheBillionDollarSaaS 3 жыл бұрын
You can export from fire base and auth0 without a problem.
@mooshy5944
@mooshy5944 3 жыл бұрын
@@ZephrymWOW Okay so how do you export existing Auth0 users into lets say AWS Cognito? Passwords and all?
@unixbashscript9586
@unixbashscript9586 3 жыл бұрын
Cognito defintely supports import from csv
@aniketacharya512
@aniketacharya512 3 жыл бұрын
The quality of these videos never ceases to amaze me.
@docmars
@docmars 3 жыл бұрын
Not as user friendly to setup, but AWS Cognito is a great alternative, and free for the first 50,000 users. Worth doing a video on it as well for comparison!
@TheRonpe
@TheRonpe 3 жыл бұрын
I was hyped, until i checked their pricing.
@Exendes
@Exendes Жыл бұрын
Its free below 7k users
@pixelman457
@pixelman457 Жыл бұрын
@@Exendes now, it's 1k
@edgarwideman737
@edgarwideman737 Жыл бұрын
0.02 / month per user... It's not that bad.
@pixelman457
@pixelman457 Жыл бұрын
@@edgarwideman737 lmaoo.. it is when you’re broke
@TomasDavidcz
@TomasDavidcz Жыл бұрын
You’re not broke when you have thousands of users. Honestly I was quite surprised how good their pricing is.
@felipe3966
@felipe3966 3 жыл бұрын
HA HAAAA!!! Just in time to improve my ongoing app, what a genious! Thank you so much guys!
@Hobbitstomper
@Hobbitstomper 3 жыл бұрын
I find OAuth incresingly scary as an end-user. I use Google for most 3rd party websites to sign-up / login. Yet every week I read new horror stories how Google just mistakenly bans entire Google accounts. The sheer thought that my Google account would get banned for whatever reason, and me not being able to login into 100s of 3rd party website where I signed up via OAuth....scary as hell. And yes, I know this video is about Auth0 and not OAuth (different things). Just felt like sharing my thoughts on OAuth from an end-user perspective.
@ChrysusTV
@ChrysusTV 3 жыл бұрын
I feel the same about using Facebook. However, I deliberately use Facebook instead of Google since if I ever lose my account for some reason, I don't also lose my entire email account. Most of the time, the sites keep your email stored and you can recover the account via email, which is only a problem if your email is also terminated (as it would be if your Google account was lost). And of course, I use my own domain for email so I can route mail to whichever provider I want.
@michaelb2047
@michaelb2047 3 жыл бұрын
@@ChrysusTV jeez how about not using a single service to manage all your data but maybe use password manager / hardware tokens / self hosted solutions instead. I see that SaS has its place, but I think authentication isn’t one of them. It should replace things that are you are not capable of hosting it yourself. Authentication is a solved problem and most frameworks make it very easy. I don’t know how trusting another company with all your user data, making yourself dependent and having to use an API is any better than using easy framework look ups from a database.
@ChrysusTV
@ChrysusTV 3 жыл бұрын
@@michaelb2047 My KeePass has 372 entries but thanks for your paragraph of concern. I'll use what I want to use, yeah?
@kiandinyari3740
@kiandinyari3740 3 жыл бұрын
@@ChrysusTV I would recommend against this. I got my facebook hacked and took months to regain control. They have zero support or care to get you your access back. It fucked up my ability to access all sorts of apps like Spotify. I no longer trust any of these universal login things.
@Hobbitstomper
@Hobbitstomper 3 жыл бұрын
@@michaelb2047 The issue is, more and more websites don't offer their own login system anymore, they only offer logins via 3rd party OAuth of Google, Facebook, Twitter etc.
@lalitfauzdar3873
@lalitfauzdar3873 3 жыл бұрын
For basic auth, Firebase auth is way easier to implement and has a lot of features and for production, AWS Cognito (part of Amplify) is better and cheaper to go.
@Dontcaredidntask-q9m
@Dontcaredidntask-q9m 3 жыл бұрын
Cognito is awful + it's not part of Amplify, it can be used with Amplify
@everenjohn
@everenjohn 3 жыл бұрын
Yeah, stay married to those services.
@chiefdan07
@chiefdan07 3 жыл бұрын
Supabase auth is decent too
@lalitfauzdar3873
@lalitfauzdar3873 3 жыл бұрын
@@chiefdan07 Plus it's opensource. I've used it and I really liked the initiative and from some time, I've been a part of open source software and I'm in awe for such people who provide leading class software open-source.
@fredrickdenga7552
@fredrickdenga7552 3 жыл бұрын
Wonderful, Jeff⚡🔥thanks for partnering with James Q Quick😎both of yall are real aces with these frameworks🏹
@dimalisovyk5277
@dimalisovyk5277 3 жыл бұрын
I've used it for SSO. It works fine, when you need something simple, but for more complex stuff (e.g. custom claims) you need to implement rules, custom databases and so on. As a result, it is easier to implement simple identity server and customize it for your needs. Most of modern backend frameworks support login with Google and other plaforms (auth2.0, openId, saml)
@Viviko
@Viviko 3 жыл бұрын
So… basically, I’m now reliant on Auth0 for my own users. And if Auth0 decides to change their rules, I can get kicked out and eventually have to build my own OAuth2 service anyways?
@quasa0
@quasa0 3 жыл бұрын
Yeah and you'll have to pay a lot
@arifdevcoding
@arifdevcoding 3 жыл бұрын
F
@arifdevcoding
@arifdevcoding 3 жыл бұрын
@@user-if1de8pt2j he meant policies. you know, that's google and google has some good reputation on suddenly shutting down services.
@Viviko
@Viviko 3 жыл бұрын
@@arifdevcoding Or if they decide not to support the types of apps I decide to make, restrict collecting certain types of data, etc…
@Viviko
@Viviko 3 жыл бұрын
@@quasa0 I mean, depending on your situation it might make sense. But, frankly, for really critical aspects of my apps, I like having control over them. Only for non-critical things or things that are too expensive to implement are what I like to rely on third parties for. For example, hosting services. It’s way too expensive to run my own servers and data centers. So, I’ll rely on AWS or GCP. Email is another example. It would just take too much work to build my own Email service. But, storing users and and authenticating them are kind of really critical. So, I prefer to implement that myself. Plus, it’s not too expensive when you look at the bigger picture.
@MarkEdwardTan
@MarkEdwardTan 3 жыл бұрын
I think Auth0 is expensive and might be good if you have the budget when it scales. I'd rather have my own authentication/authorization using PassportJS :)
@michaelhays
@michaelhays 3 жыл бұрын
Yeah I've never really understood the appeal of auth-as-a-service, when rolling your own is pretty easy
@ratulsaha9487
@ratulsaha9487 3 жыл бұрын
@@michaelhays i mean implementing oauth for so many providers is time consuming and too much code writing. People just look for the easy way out. And then we get this. Just one sdk, no need of your own api, easy to use.
@KGIV
@KGIV 3 жыл бұрын
Agree. It certainly has a place in larger organizations, especially when it comes to compliance needs.
@ZephrymWOW
@ZephrymWOW 3 жыл бұрын
@@ratulsaha9487 implementing JWT OAuth is like 10-100 lines of code lmao. Especially if you just use a library to handle it
@ratulsaha9487
@ratulsaha9487 3 жыл бұрын
@@ZephrymWOW thats email password login. I clearly stated that the lengthy part is the 3rd party providers like google, github, etc
@nosthrillz
@nosthrillz 3 жыл бұрын
Hi James! 🤩
@f1shyv1shy35
@f1shyv1shy35 3 жыл бұрын
Never been so early to great content 😆
@IngwiePhoenix_nb
@IngwiePhoenix_nb 3 жыл бұрын
A few questions, and I am just being a little curious here: - Can I embed the login form into my website itself, or is the redirect required? I'd guess I can just POST to the auth0 URL as well, but just making sure. - Is there a hook for account deleting? i.e.: If you wrote a forum with auth0, you'd want to mark an account as deleted once that happens. - How much information can auth0 store, exactly? The profile showcased had minimal information. Is this all or would it be outright better to create a DB entry with a foreign key pointing at the remote profile entry to link the local profile with the remote account? Thanks!
@keooodev7554
@keooodev7554 3 жыл бұрын
you can add metadata to the accounts. using the authO managment API
@bringbackwindowsphone
@bringbackwindowsphone 3 жыл бұрын
Yeah there's a hook for that. You can embed the form yourself using their APIs but it's much more work recreating all of the two factor flows and stuff compared to just using their excellent premade ones.
@Blast-Forward
@Blast-Forward 3 жыл бұрын
The redirect is required, you can only have a custom domain. If there is another solution, tell me. ;)
@ChrysusTV
@ChrysusTV 3 жыл бұрын
@@Blast-Forward Auth0 Lock...
@seanmccambridge
@seanmccambridge 3 жыл бұрын
One criticism I’ve heard of Auth0 is that it’s pricey. How about a video that compares it side by side with Firebase auth and Cognito?
@AkshatSinghania
@AkshatSinghania 3 жыл бұрын
you are making i wanted 3 months ago , thats so cool ,it would be so helpful anyone else needing these.
@michongoma7598
@michongoma7598 3 жыл бұрын
Nice to see James here.
@86hardluck
@86hardluck 3 жыл бұрын
OMG Fireship and James Q. Quick in the same video at the same time?!! My brain just asploded! Two of my favorite techy teachers at once.
@DiegoHuamanLandeo
@DiegoHuamanLandeo 3 ай бұрын
Очень полезное видео для сообщества, спасибо!
@babyboie20
@babyboie20 3 жыл бұрын
Great collab! I generally watch both of y'all anyways, good to see you both in the same video.
@thisissyedbasim
@thisissyedbasim 3 жыл бұрын
I really wanted to learn this. You read my mind 🔥🔥
@Jujukungfu
@Jujukungfu 3 жыл бұрын
Where were you with this like 2 days ago when I was trying to figure this out on my own lol. I jest, thanks for the great content! For free no less!
@TrevorReimer
@TrevorReimer 3 жыл бұрын
Would you consider a video about Ory? A open-source auth system with no vender lock-in.
@Blast-Forward
@Blast-Forward 3 жыл бұрын
Auth0 is very cool also as a straightforward solution for 3rd-party/social login.
@koodingfloppa39
@koodingfloppa39 3 жыл бұрын
I like how he predicts the interests of his audience right when they want to learn that type of thing
@Benjiman6th
@Benjiman6th Жыл бұрын
I am novice. Was what you explained an SDK? And if so, are we to put the sample folder in our root directory?
@munashe_dev
@munashe_dev 3 жыл бұрын
You deserve a Grammy no cap
@cm3462
@cm3462 4 ай бұрын
Honestly James Q Quick is kind of a boss
@artrix909
@artrix909 3 жыл бұрын
jeff always posts just on time
@HaozheYuda1989
@HaozheYuda1989 3 жыл бұрын
auth0 is getting better and better
@chotai
@chotai 3 жыл бұрын
Both of my favourite youtubers. OMG
@wlockuz4467
@wlockuz4467 3 жыл бұрын
You know what I love more than "...In 100 seconds"? ...In 100 seconds and beyond!
@ThisGuyEdits24
@ThisGuyEdits24 7 ай бұрын
Me: Neat a 100 second video Video: 503 seconds Me: Hyped About Auth0 Auth0: Money Me: Checking pricing, then opens funeral and then goes inside.
@idukpayealex
@idukpayealex 3 жыл бұрын
excited to see you james
@krazymeanie
@krazymeanie 3 жыл бұрын
Auth0 is nice but i stick with next-auth that was built specifically with next js in mind. They also have built in support for prisma along with way more providers for free.
@lucasgazzola
@lucasgazzola 3 жыл бұрын
From 🇦🇷 🇦🇷 to the world
@ankushbhagatofficial
@ankushbhagatofficial 5 ай бұрын
5:00 How you get this suggestion on integrated terminal?
@chiefdan07
@chiefdan07 3 жыл бұрын
Woah this is perfect timing. Currently looking into several auth services.
@megasage
@megasage 3 жыл бұрын
6:13 how is that cursor !
@srinathganesh6985
@srinathganesh6985 3 жыл бұрын
What about Keycloak? its Open Source but you host it yourself
@ZeroYT
@ZeroYT 3 жыл бұрын
You have to pay for almost all good features. Magic email links for example..
@shreyanshmori7369
@shreyanshmori7369 3 жыл бұрын
This is something I was looking for my site.
@copperbeckville1853
@copperbeckville1853 Жыл бұрын
Auth0 is a terrifying Orwellian piece of software.
@coconutz4535
@coconutz4535 3 жыл бұрын
What is the vscode theme that james use?
@majidraimi
@majidraimi 2 жыл бұрын
did u found it ?
@Manish_._369
@Manish_._369 7 ай бұрын
tell us bro
@CANIHAZURDREAMSPLS
@CANIHAZURDREAMSPLS 11 ай бұрын
how does Auth0 handle other logins from other users or does this handle that as well and no need separate api keys?
@priyankamurmu6228
@priyankamurmu6228 Жыл бұрын
What's the theme used here in vs code? Breathing cursor looks amazing
@AB-ub9nd
@AB-ub9nd 3 жыл бұрын
It’s too expensive. Amazon cognito is cheaper and while maybe the api is a bit backwards it works great.
@olorunfemidaramola5470
@olorunfemidaramola5470 10 ай бұрын
The access token I get from auth0 is invalid, I don’t know to fix that, cos it cannot be decoded
@chetanjain4616
@chetanjain4616 3 жыл бұрын
Great video. Also, for your next one maybe you can do one for debugger with VScode its been long overdue
@prashpatil24
@prashpatil24 3 жыл бұрын
Thanks both of you very knowledgeable
@abh1yan
@abh1yan 3 жыл бұрын
Fireship is now beyond perfect.
@manfyegoh
@manfyegoh 3 жыл бұрын
any firebase auth vs auth0 video coming soon?
@SuperElephant
@SuperElephant 3 жыл бұрын
I can confirm that the mind reading business is no joke. I'm now experiencing that and truly believing in it..
@dongums
@dongums 2 жыл бұрын
I hope firebase also has easier server side auth workflow. it's hard to implement server side auth using firebase admin
@BlackdestinyXX
@BlackdestinyXX 3 жыл бұрын
Good job! I really like these type of videos
@luizuk4
@luizuk4 2 жыл бұрын
Awesome content! Thanks!
@HendersonHarrisson
@HendersonHarrisson 2 жыл бұрын
What about Azure Active directory, and how does Auth0 compare with it.
@DK-ox7ze
@DK-ox7ze 3 жыл бұрын
This is really nice. But I wonder how much different is the security part of login mechanism vs the security of other parts of the app? Given that auth0 is only going to secure the login, the devs still need to implement security in other parts of the app (which is basically most of the app). So if they are building good security mechanisms for other parts of the app, they should be capable of securely building the login part too?
@ChrysusTV
@ChrysusTV 3 жыл бұрын
That's not necessarily true. Many of the authentication systems (Auth0, Firebase, etc.) allow roles, which are what you'd use throughout your app to control access after the login stage. Obviously, if you're not using roles, then sure you have to build your own access control. Otherwise, the roles are in the JWT, so then your concern would be whether JWT is secure or not, not if these authentication systems are useful. And roles can be used inherently in other parts of a backend depending on the provider -- for example, Firestore can use your authentication roles to restrict access to documents.
@okmiedga
@okmiedga Жыл бұрын
Anyone else having a lot of trouble getting the sample project up and running? The issue is with the javascript nullish coalescing operator.
@YanickSteinbeck
@YanickSteinbeck 3 жыл бұрын
Currently using auth0 and struggling with token expiry: Auth0 does not seem to let me set an expiry that's greater than 90 days. Has anybody solved this before? PS: I am aware of security concerns - but it's fine for my use case
@rahulpadalkar6237
@rahulpadalkar6237 3 жыл бұрын
This is great but the real question is what's in `jqq-meme` folder? jk, great vid.
@prajyotmayekar328
@prajyotmayekar328 3 жыл бұрын
Woooo 🙌🏻
@Abdullah_hassan_88
@Abdullah_hassan_88 Жыл бұрын
Fun fact:open ai also uses auth0
@bity-bite
@bity-bite 3 жыл бұрын
Never heard of Auth0, nice. What about C# in 100 seconds please 🥺
@eugenmeissner9510
@eugenmeissner9510 3 жыл бұрын
Cool stuff but why would i use auth0 if i'm already invested in a cloud provider?
@mrrishiraj88
@mrrishiraj88 3 жыл бұрын
Great content always
@GlenBondMogane
@GlenBondMogane 3 жыл бұрын
The beast inviting coolest dude
@ryann1826
@ryann1826 3 жыл бұрын
We want a video about PHP / laravel .. Or compare them to node.js ..
@piecepaper2831
@piecepaper2831 3 жыл бұрын
your 1 week late. i implemeted auth0 and this vodeo would have helped alot
@richardebrain
@richardebrain 2 жыл бұрын
deploying to vercel kinda give me problem , it trows an error when i try to login , it says access denied .. any solution to this
@daniellchukwu
@daniellchukwu Жыл бұрын
Perfect 👍👍
@kraskaska
@kraskaska 3 жыл бұрын
that's just what i needed, great work!
@jcjiron
@jcjiron Жыл бұрын
Thank you thank you thank you!
@HiImKyle
@HiImKyle 2 жыл бұрын
It's just too expensive in the long run imo, I need this but a self hosted version
@keooodev7554
@keooodev7554 3 жыл бұрын
I wish you added how to use the managment api with NEXT JS I find it a struggle
@tapu_
@tapu_ 3 жыл бұрын
But can it authorize dn?
@jasonpraful
@jasonpraful 3 жыл бұрын
What's the zsh autocomplete package which gives an intellisense like ui for terminal? As seen in 5:01
@fr3dlopez
@fr3dlopez Жыл бұрын
not sure if you ever found it but this is fig for macos
@teckyify
@teckyify 3 жыл бұрын
You can have that with keycloak
@unpunished123
@unpunished123 3 жыл бұрын
Love you from Bangladesh
@SweetSummerChildern
@SweetSummerChildern 3 жыл бұрын
Os tutorial with Rust 🤗🔥🔥
@ninjaasmoke
@ninjaasmoke 3 жыл бұрын
"this has been auth0 in 100 seconds, but stay tuned.." instant like achieved
@JasonLatouche
@JasonLatouche 3 жыл бұрын
I want to be able to store custom user attributes, like stuff they've favourited in my system. I also want to allow them to change email - with email verification - if they want to. Can Auth0 do that?
@baki-dev
@baki-dev 3 жыл бұрын
And why? How has favorited stuff in your system (business logic) got anything to do with security? Rethink it.
@khakcsar
@khakcsar 3 жыл бұрын
Finally I can stop hyperlinking the login button to next page.
@mensch4434
@mensch4434 2 жыл бұрын
Yea 100 Seconds 👍
@rwlc
@rwlc 3 жыл бұрын
Used Auth0 with my recent Next project, and I fucking loved it.
@Gabouchet
@Gabouchet 3 жыл бұрын
Can your compare Auth0 to Cognito from aws ?
@joachim4660
@joachim4660 2 жыл бұрын
passport.js in 100 seconds would be nice
@dawid_dahl
@dawid_dahl 3 жыл бұрын
Does anybody know the name of his vscode folder-icon plug-in?
@armaanchoudhary
@armaanchoudhary 3 жыл бұрын
And I thought he did a face reveal xD (hover over the vid to see preview)
@computerscience1152
@computerscience1152 3 жыл бұрын
Rust beyond 100seconds
@krtirtho
@krtirtho 3 жыл бұрын
Hey Jeff, why u kinda looking like James?🤔
@naimahmed2382
@naimahmed2382 2 жыл бұрын
I wanna know what vs code theme he uses
@KshitizArya17
@KshitizArya17 3 жыл бұрын
Can you do one for Gatsby? I have recently started working on a project using Gatsby and it would be wonderful to have a video on it. p.s - Great video as always, keep it up
@ChumX100
@ChumX100 3 жыл бұрын
Cloudflare workers in 100 seconds!
@Football__Junkie
@Football__Junkie 3 жыл бұрын
…in 503 seconds
@bopon4090
@bopon4090 3 жыл бұрын
Difference between passport and auth0??
@codecrafter_4046
@codecrafter_4046 3 жыл бұрын
That's what I'm waiting for, thanks :)
@neyliolol
@neyliolol 3 жыл бұрын
The fact that you don't know the difference between 0auth and auth0 made me anxious ...
PHP in 100 Seconds
2:21
Fireship
Рет қаралды 1,4 МЛН
Auth Does NOT Have To Be Hard
17:13
Web Dev Simplified
Рет қаралды 103 М.
It works #beatbox #tiktok
00:34
BeatboxJCOP
Рет қаралды 41 МЛН
REAL or FAKE? #beatbox #tiktok
01:03
BeatboxJCOP
Рет қаралды 18 МЛН
An Illustrated Guide to OAuth and OpenID Connect
16:36
OktaDev
Рет қаралды 625 М.
I built the same app 10 times // Which JS Framework is best?
21:58
Fireship
Рет қаралды 2,6 МЛН
Authentication Flow in Next.js (Complete Tutorial)
30:37
Cosden Solutions
Рет қаралды 32 М.
WebSockets in 100 Seconds & Beyond with Socket.io
8:31
Fireship
Рет қаралды 1 МЛН
What Is JWT and Why Should You Use JWT
14:53
Web Dev Simplified
Рет қаралды 1,2 МЛН
How a CPU Works in 100 Seconds // Apple Silicon M1 vs Intel i9
12:44
DON'T Become a Software Engineer - Do THIS instead
14:17
Tech With Soleyman
Рет қаралды 117 М.
How to OVER Engineer a Website // What is a Tech Stack?
11:20
Fireship
Рет қаралды 2,5 МЛН
Setup Google OAuth sign in 6 minutes
6:51
Appwrite
Рет қаралды 108 М.
It works #beatbox #tiktok
00:34
BeatboxJCOP
Рет қаралды 41 МЛН