This is great! Short and straightforward! It would be great if you can make a video about "What's next after setting up NextAuth.js" like connecting database to get the user posts, for example. Most of the NextAuth.js tutorial videos don't cover what to do after basic auth setup.
the database part isa good idea. i did recently put out a video about using the Twitter oauth tokens in a serverless function! ua-cam.com/video/5wjuar9AU-0/v-deo.html
Hi, please any idea why the auth page display dangerous site. Though ssl is installed on the site, every other page is fine, but the twitter authentication page displays unsecure connection to users. Please how to fix.
I've been trying to get Firebase Auth working in my app. I want to provide an admin dashboard in my site so the administrator can set things in there. :D Your video is short and clear, as always. Keep up the good work, I love it! It is sure gonna help me understand how the puzzle is connected together. One thing was left unanswered and it's the Privacy Policy and the Terms of Service. Knowing nothing about those and how to protect myself, what would be the best course of action to fulfill those requirements?
thank you! honestly i would recommend doing a little research on it from other sources, i dont want to provide recommendations as that starts to get into "legal advice" territory 😅and i really don't have a complete understanding of best practices anyways. you might be able to find some open source ones or generators
I get an error in production when using Vercel. I have uploaded all my environmental variables to vercel, and I update the NEXTAUTH_URL="my production url" and my github providers URL and Callback URL. Any ideas?
@@jackn im not sure that you would get the entire profile like that by default, i would look through the different objects passed in via jwt async jwt({ token, user, account, profile, isNewUser }) { otherwise yo ucould request that information from the twitter API directly
twitter rejected my request for elevated pack 2 times i described my use case to them that i wanna just add twitter login functionaality to my app and i want to use some user profile info such as username and profile image and they didn't approved it twice.
it's been a minute since i worked in this but id expect it to be either in the user or account object accessible through a callback: next-auth.js.org/configuration/callbacks
@@minus1903 here's my code if you want to check out what im doing github.com/colbyfayock/my-auth-app if im not mistaken NextAuth might have updated how you pass in the NextAuth configuration or how you get the data from the callback arguments i would also poke through here and see if anyhting looks of next-auth.js.org/getting-started/example
Learn how to build a full stack Next.js app in my upcoming course: colbyfayock.com/course
You're the best teacher I've ever seen on Twitter
really appreciate that :)
haha - man I meant to say UA-cam xD@@colbyfayock
Get fresh tutorials and other free content straight to your inbox! colbyfayock.com/news
This is great! Short and straightforward! It would be great if you can make a video about "What's next after setting up NextAuth.js" like connecting database to get the user posts, for example. Most of the NextAuth.js tutorial videos don't cover what to do after basic auth setup.
the database part isa good idea. i did recently put out a video about using the Twitter oauth tokens in a serverless function! ua-cam.com/video/5wjuar9AU-0/v-deo.html
terrific tutorial Colby, lot's of info, clearly presented, in a brilliantly short tutorial. Thank you!
thanks Naveed!
Hi, please any idea why the auth page display dangerous site. Though ssl is installed on the site, every other page is fine, but the twitter authentication page displays unsecure connection to users. Please how to fix.
thanks colby fayock,straight forward and amazing tutorial
you're welcome! 🙌
that was very easy ! you are my hero!
yay glad it helped :D
have you ever thought about the refresh token ? I am working to it, it made me crazy.
the best explanation ever. Thank you very much.
no problem, glad it helped!
I've been trying to get Firebase Auth working in my app. I want to provide an admin dashboard in my site so the administrator can set things in there. :D Your video is short and clear, as always. Keep up the good work, I love it! It is sure gonna help me understand how the puzzle is connected together.
One thing was left unanswered and it's the Privacy Policy and the Terms of Service. Knowing nothing about those and how to protect myself, what would be the best course of action to fulfill those requirements?
thank you! honestly i would recommend doing a little research on it from other sources, i dont want to provide recommendations as that starts to get into "legal advice" territory 😅and i really don't have a complete understanding of best practices anyways. you might be able to find some open source ones or generators
@@colbyfayock hehe, I understand 😆 It is kinda tricky with legal protections 🙃
Thanks Colby useful information. is it possible if we can combine magic links with Next Auth ?
no problem! it looks like their "email" provider supports that: next-auth.js.org/providers/email
I get an error in production when using Vercel. I have uploaded all my environmental variables to vercel, and I update the NEXTAUTH_URL="my production url" and my github providers URL and Callback URL. Any ideas?
what error are you getting? were you able to see any logs in Vercel?
great video man!
Is there any way to extend the user object in the session?
it only allows name, email and photo.
Hey did you try to use the session callback? next-auth.js.org/configuration/options#callbacks
@@colbyfayock The callback only seems to have the same information. Where does info like the user's twitter handle or their bio get stored?
@@jackn im not sure that you would get the entire profile like that by default, i would look through the different objects passed in via jwt
async jwt({ token, user, account, profile, isNewUser }) {
otherwise yo ucould request that information from the twitter API directly
@@colbyfayock profile has it, thanks!
twitter rejected my request for elevated pack 2 times i described my use case to them that i wanna just add twitter login functionaality to my app and i want to use some user profile info such as username and profile image and they didn't approved it twice.
sorry to hear, im not sure how that works
@@colbyfayock can u tell me what to write so that i can get my application approved by twitter. It will help me a lot.
thank you!
you got it! 🙌
how to get twitter username ?
it's been a minute since i worked in this but id expect it to be either in the user or account object accessible through a callback: next-auth.js.org/configuration/callbacks
awesome
🙌
Idk why am i the only one getting errors :)
where are you getting an error?
@@colbyfayock on the authentication part, the error is like : missing oauth headers unable to retrieve user data. i'm getting an empty object
@@minus1903 here's my code if you want to check out what im doing github.com/colbyfayock/my-auth-app
if im not mistaken NextAuth might have updated how you pass in the NextAuth configuration or how you get the data from the callback arguments
i would also poke through here and see if anyhting looks of next-auth.js.org/getting-started/example
@@colbyfayock thanks man i will look it up
Can you make an discord server so that we can reach out to you there ?
@@minus1903 spacejelly.dev/discord :)