Add Authentication to Next.js in 10 mins with OAuth (Google, Github...)

  Рет қаралды 106,264

CoderOne

CoderOne

Күн бұрын

Пікірлер: 71
@ziacodes
@ziacodes Жыл бұрын
Why to make "IsloggedInServer and the IsLoggedClient" function and add to every page, it will be repeating the same thing. Isn't the middleware a best option for this type?
@dachewster9999
@dachewster9999 Жыл бұрын
You didn't use the latest version which is AuthJs, and you didn't use middleware, so what you showed is not very good
@spektree8448
@spektree8448 Жыл бұрын
?
@анче-у2ш
@анче-у2ш 8 ай бұрын
And didn't deploy on vercel, so credentials won't work
@hamzandev9482
@hamzandev9482 Жыл бұрын
How i can store the user information to database like postgres if the user signed in using GitHub or other providers?
@Gyooopp
@Gyooopp 9 ай бұрын
Same, and what if I want to remove any user how can I do that
@nogovi2686
@nogovi2686 10 ай бұрын
Best way for a custom backend to integrate with Google provider, ideally i need mmy backend to track accounts through the creation of user entities in the backend as each user will have their own data.
@mashab9129
@mashab9129 6 ай бұрын
great tutorial! question - how do you use hooks inside a condition? isnt it against react hooks rules?
@alexanderbrewster3595
@alexanderbrewster3595 6 ай бұрын
thank you for the help, i have been struggling with authentication for weeks
@AlirezaMehrabiKali
@AlirezaMehrabiKali 10 ай бұрын
hi, i did that but after try to login i have error below Try signing in with a different account. expected 200 OK, got: 403 Forbidden can't find anything for that
@thepromisebenard
@thepromisebenard Жыл бұрын
Nice video. please mind sharing what font and theme you are using for vscode?
@jevanwu
@jevanwu 9 ай бұрын
Why don't you need an adapter for the auth configs?
@oniasdarocha1983
@oniasdarocha1983 Жыл бұрын
amazing video, thank you so much it helped me out a lot!!
@aiknowledge-n2s
@aiknowledge-n2s 8 ай бұрын
Could you help me find the previous video?
@drgnstudio5246
@drgnstudio5246 Жыл бұрын
what theme is that
@sirvoya2357
@sirvoya2357 3 ай бұрын
how can i use DiscordProvider?
@mdmizanurrahman3190
@mdmizanurrahman3190 9 ай бұрын
Hey man, nice explanation. Thank you. But Is there a way do the same kind of email checking like in the credentials provider with the Google Provider? Let's say I have a user table and when someone trying logging in with Google, their email needs to be cross-matched with a user from the user table. if matched they should be allowed to login otherwise redirect to login page. Can anyone suggest a solution for this problem? TIA
@twd2
@twd2 Жыл бұрын
Great tutorial, does the Google login and Credentials login handle the refresh token, CSRF etc !!!
@nerophase
@nerophase 3 ай бұрын
very good tutorial.. thanks!!
@2kceltics
@2kceltics Жыл бұрын
I could login using Github but it didn't redirect me to the "dashboard || timeline || etc" I stay in the same page with my session started. How can I do to redirect after login with github/google ?
@GujarathiSaiSrinith
@GujarathiSaiSrinith 5 ай бұрын
I too have the same issue sir, any update on your side?
@aliafarinifard
@aliafarinifard 7 ай бұрын
Great Job... I love your teach
@rockNbrain
@rockNbrain Жыл бұрын
Great job dude 🎉 tks
@keymalerock
@keymalerock Жыл бұрын
Nice tut Bruh, bbut I can't get the Git Repo, I looked, up and down, but did not see it!
@CoderOne
@CoderOne 11 ай бұрын
github.com/ipenywis/nextjs-auth
@darkemperor9006
@darkemperor9006 3 ай бұрын
Kindly make new video using authjs
@tinothecoder12
@tinothecoder12 Жыл бұрын
thanks bro
@nahrulk
@nahrulk Жыл бұрын
how can i get te toke.. ehe
@codernerd7076
@codernerd7076 Жыл бұрын
2FA would make it even more secure
@rishiraj2548
@rishiraj2548 Жыл бұрын
Good day greetings
@_Yolandi
@_Yolandi Жыл бұрын
Title: Add Authentication to Next.js in 10 mins Video Duration: 20 mins.
@CoderOne
@CoderOne Жыл бұрын
It's called a "VIDEO TUTORIAL". So I have to go through and explain all the bits and details so everyone from beginner to advanced can easily understand and walk away happy. It says 10mins because anyone can add auth in 10mins but it doesn't necessarily mean that the video will be less than 10mins. The video is meant to make people understand not just implement it and walk away!
@aiknowledge-n2s
@aiknowledge-n2s 8 ай бұрын
@@CoderOne I want to explore the previous video where you build the whole twitter clone. Could you give me the link of that video please? I need it urgently.
@kacperkepinski4990
@kacperkepinski4990 9 ай бұрын
unclear as hell
@humbleguy12338
@humbleguy12338 Жыл бұрын
these captions are irritating
@sholavandan81
@sholavandan81 Жыл бұрын
The github code is missing the next-auth specific implementation for Google & github. Can you please push the code into the repo? It would help us to go through the code and implement.
@kiliusz
@kiliusz Жыл бұрын
said 5min title 10min video length 20min
@tomasburian6550
@tomasburian6550 8 ай бұрын
You forgot to show us how to set up the authorizatiion for GitHub, but otherwise... good video. I've learned a lot.
@zakidzz
@zakidzz Жыл бұрын
how about next js next auth with nest js as a backend.....
@r34ct4
@r34ct4 2 ай бұрын
Any idea how we can deploy this on Google Cloud Run (with variables & secrets) and/or Vercel? My ENV variables do not seem to work on either. Thanks man
@mishos5428
@mishos5428 Жыл бұрын
Great video. Where can I find the source code of this particular video?😃
@jenilsavani1
@jenilsavani1 Жыл бұрын
Which vscode theme you are using ?
@PickleRiiiiiiick
@PickleRiiiiiiick Ай бұрын
I don’t like people that start sentences with “oh”
@kacperkepinski4990
@kacperkepinski4990 9 ай бұрын
it took me over 1 h and i stil dont have that....
@frontend_ko
@frontend_ko 6 ай бұрын
nice video
@kacperkepinski4990
@kacperkepinski4990 9 ай бұрын
its 20 min
@LemanGahramanova-kh8fb
@LemanGahramanova-kh8fb 4 ай бұрын
i have an error: Error with Permissions-Policy header: Unrecognized feature: 'ch-ua-form-factor'. How i can fix this problem?
@hayrivonnebenan5127
@hayrivonnebenan5127 5 ай бұрын
Hi, in production the login doesent work, any idea why ? I use same urls for dev and production build, dev works great, production (local) not.
@sleechigo3759
@sleechigo3759 7 ай бұрын
Hi, thanks for the nice video. I notice that in production, as you click the button to use google or github, chrome flags your site as dangerous, why is that, any way to fix it.
@jethrangomez1313
@jethrangomez1313 Жыл бұрын
I have a problem with authentication, how can I automatically cancel authentication? when i am logged in and i close windows then open it but it logs in by itself
@Adrian-mu8gg
@Adrian-mu8gg Жыл бұрын
what if i use the credentials provider but forget password? does next-auth got any thing out of the box to handle that? like email resend reset password token?
@inzolis2551
@inzolis2551 Жыл бұрын
when you "contiune with Google" does your data get saved on the prisma database, because when i try this, I cannot find the user data in my prisma studio
@luisantoniobarajasramirez7507
@luisantoniobarajasramirez7507 Жыл бұрын
can you explain us how to customize the sign in form? like the GoogleSignInButton and GithubSignInButton thanks
@wdevdan9814
@wdevdan9814 Жыл бұрын
how do you sign out of the github API? i can sign out on my app, but i'm still logged in through github :(
@aiknowledge-n2s
@aiknowledge-n2s 8 ай бұрын
Where is the previous video where he built the whole clone? @CoderOne
@Cowglow
@Cowglow Жыл бұрын
6:03 coding and talking is hard.
@MrCuteguylol
@MrCuteguylol 5 ай бұрын
where did you pass the nextauth secret?
@laurelineparis5407
@laurelineparis5407 Жыл бұрын
Question: for authButtonsFiles - I am not certain why there are two buttons ( google / github ) when it could have been refactored into one for instance ? Did you had / do you have specific reasons or was it made just on the fly for the purpose of the video ?
@kacperkepinski4990
@kacperkepinski4990 9 ай бұрын
i dont understand u add a lot of code before...
@SingleSeeker
@SingleSeeker Жыл бұрын
Have you tried the refreh token strategy?
@dawid_dahl
@dawid_dahl Жыл бұрын
Thank you kindly!
@yusufmafif
@yusufmafif 6 ай бұрын
Thank you so much, its works
@brunomartins3055
@brunomartins3055 8 ай бұрын
top man keep it cool great job
@collinsk8754
@collinsk8754 9 ай бұрын
Excellent video!
@CodeHassanX
@CodeHassanX Жыл бұрын
good video sir
@laurelineparis5407
@laurelineparis5407 Жыл бұрын
✨👌
@vedanshbisht1309
@vedanshbisht1309 Жыл бұрын
source code? github ?
@CoderOne
@CoderOne 11 ай бұрын
github.com/ipenywis/nextjs-auth
@SuperShivammm
@SuperShivammm Жыл бұрын
Very practical way of using next-auth with next js . Thanks
Next-Auth on App Router - Solid Auth, Super Fast
17:20
Jack Herrington
Рет қаралды 115 М.
Next.js Authentication Firebase - Sign in with Google
36:54
Code Commerce
Рет қаралды 41 М.
Man Mocks Wife's Exercise Routine, Faces Embarrassment at Work #shorts
00:32
Fabiosa Best Lifehacks
Рет қаралды 5 МЛН
The joker favorite#joker  #shorts
00:15
Untitled Joker
Рет қаралды 30 МЛН
OYUNCAK MİKROFON İLE TRAFİK LAMBASINI DEĞİŞTİRDİ 😱
00:17
Melih Taşçı
Рет қаралды 12 МЛН
Поветкин заставил себя уважать!
01:00
МИНУС БАЛЛ
Рет қаралды 6 МЛН
NextJS 13. Аутентификация и приватные роуты
33:59
Михаил Непомнящий
Рет қаралды 47 М.
Laravel vs Rails for Javascript developers
19:50
Sam Lewis
Рет қаралды 2,5 М.
Set up Google OAuth with Next.js using Next-Auth!
21:00
Build SaaS with Ethan
Рет қаралды 27 М.
Setup Google OAuth sign in 6 minutes
6:51
Appwrite
Рет қаралды 59 М.
Man Mocks Wife's Exercise Routine, Faces Embarrassment at Work #shorts
00:32
Fabiosa Best Lifehacks
Рет қаралды 5 МЛН