Great video, it was really helpful! It would be awesome to see a series on OAuth implementation with Lucia, using different providers. For the next video, it would be better if there were fewer cuts and if you were more prepared. ☺
@@ugurcodes It would be amazing if you could go into more depth with refreshing the token in the background, if user was signed in with google or credentials.
Great tutorial! Just finished this tutorial and link form which you fetch user data from Google provider is no longer valid. In Google documentation I found a new one, which works. My question is: how often does Google change this link ? In our code all google auth functionality depends on it, if it changed - nothing works 🤨 and we need to manually go into code and change it every time google changes it, or what ? Am I only one who founds this element of Lucia auth a weak spot ?
I may have missed something, but at what stage do we check and delete session data in cookies? I don't mean when you log out of your account, but if the session has expired
does Lucia supports react native app with next.js fullstack? i am looking for common auth system for my fullstack app written in next.js and want to authenticate mobile app on it. nextAuth cant do that .. does lucia support?
hmm, it's not exactly related to auth topic but drizzle query would be: import { count } from 'drizzle-orm' await db.select({ value: count(userTable.id) }).from(userTable); and you can create a new server action that returns the result. Let me know if you need further help :)
I got it working, thank you! One thing I would suggest is not setting the id of user to be the id of the google account it might be confusing to have two records in different tables with the same id. I used generateId(15) and changed the where clauses so that the id strategy of user is always the same whetether it's from oauth or email/pwd
i am now using neon serverless as my pg in the cloud but i realized that it does not support transactions with https and i have to modify it to the weebsocket that neon offers, did you have to connect lucia with neon serverless?
@@fabienpineau1580 yes i read the documentacion for transactions in neon serverless, do you need to create anew instance Pool conection from @neondatabase/serverless and to conect with drizzle used import drizzle-orm/neon-serverless example: const client = new Pool({ connectionString: env.DATABASE_URL}); const db = drizzle(client, { schema }); now you can use db.transaction
Great video, it was really helpful! It would be awesome to see a series on OAuth implementation with Lucia, using different providers. For the next video, it would be better if there were fewer cuts and if you were more prepared. ☺
Amazing, I'm tired reading more than 3 docs and Comment back and forth, Just to finish the google oauth with lucia.
Damn! I'm glad it helped you :)
Great tutorials on Lucia Ugur, thank you! You explain things very clearly, well done.
Amazing keep the lucia tutorials going!
Thank you and will do! Let me know if you have a topic that you'd like to see
@@ugurcodes It would be amazing if you could go into more depth with refreshing the token in the background, if user was signed in with google or credentials.
@@ugurcodes Also where can I findyour code, I can't find your github?
Great tutorial! Just finished this tutorial and link form which you fetch user data from Google provider is no longer valid. In Google documentation I found a new one, which works. My question is: how often does Google change this link ? In our code all google auth functionality depends on it, if it changed - nothing works 🤨 and we need to manually go into code and change it every time google changes it, or what ? Am I only one who founds this element of Lucia auth a weak spot ?
I may have missed something, but at what stage do we check and delete session data in cookies? I don't mean when you log out of your account, but if the session has expired
This is awesome authentication lucia, Love your vedios can we get the microsoft provider as well for it?.
Great video, but how can we get user data on client side, does Lucia provide any function for that
Hi! I've just recorded a video about it! Sorry for the late reply.
You can checkout the last video I published
Take care,
Ugur
does Lucia supports react native app with next.js fullstack? i am looking for common auth system for my fullstack app written in next.js and want to authenticate mobile app on it. nextAuth cant do that .. does lucia support?
sooo cool bro! can we have the github repo?
Hey! thanks:)
Checkout oauth branch
github.com/ugurkellecioglu/next-14-lucia-auth-postgresql-drizzle-typescript-example
Can you help writing a code to display the user count from the db for this project?
hmm,
it's not exactly related to auth topic but drizzle query would be:
import { count } from 'drizzle-orm'
await db.select({ value: count(userTable.id) }).from(userTable);
and you can create a new server action that returns the result. Let me know if you need further help :)
Would love to see you implement it in the next video ^^@@ugurcodes
Cool video, can u update the repo so that it's easier to copy code instead of retyping from video pls?
Code is available, please check oauth branch
amazing! tysm@@ugurcodes
I got it working, thank you! One thing I would suggest is not setting the id of user to be the id of the google account it might be confusing to have two records in different tables with the same id. I used generateId(15) and changed the where clauses so that the id strategy of user is always the same whetether it's from oauth or email/pwd
@@baptiste6436 yes! I realized that after recording video. Thanks for the suggestion 🙏
i am now using neon serverless as my pg in the cloud but i realized that it does not support transactions with https and i have to modify it to the weebsocket that neon offers, did you have to connect lucia with neon serverless?
did you find a solution?
@@fabienpineau1580 yes i read the documentacion for transactions in neon serverless, do you need to create anew instance Pool conection from @neondatabase/serverless and to conect with drizzle used import drizzle-orm/neon-serverless
example:
const client = new Pool({ connectionString: env.DATABASE_URL});
const db = drizzle(client, { schema });
now you can use db.transaction
can you please edit your videos before uploading, it's hard to learn when it breaks here and there and we go in to a rabbit hole to fix it
Where is the repo?
Hey!
github.com/ugurkellecioglu/next-14-lucia-auth-postgresql-drizzle-typescript-example