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

  • @malsp5151
    @malsp5151 Месяц назад

    Great tutorials on Lucia Ugur, thank you! You explain things very clearly, well done.

  • @rizkchan
    @rizkchan 4 месяца назад +2

    Amazing, I'm tired reading more than 3 docs and Comment back and forth, Just to finish the google oauth with lucia.

    • @ugurcodes
      @ugurcodes 3 месяца назад

      Damn! I'm glad it helped you :)

  • @olehminko1744
    @olehminko1744 2 месяца назад +1

    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 ?

  • @lovrozagar3729
    @lovrozagar3729 3 месяца назад +1

    Amazing keep the lucia tutorials going!

    • @ugurcodes
      @ugurcodes 3 месяца назад +1

      Thank you and will do! Let me know if you have a topic that you'd like to see

    • @lovrozagar3729
      @lovrozagar3729 3 месяца назад

      @@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.

    • @lovrozagar3729
      @lovrozagar3729 3 месяца назад

      @@ugurcodes Also where can I findyour code, I can't find your github?

  • @chakrik2899
    @chakrik2899 2 месяца назад

    This is awesome authentication lucia, Love your vedios can we get the microsoft provider as well for it?.

  • @amelianceskymusic
    @amelianceskymusic 2 месяца назад

    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

  • @malikgenius4u
    @malikgenius4u Месяц назад

    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?

  • @yashrajjaiswal9941
    @yashrajjaiswal9941 4 месяца назад +1

    Great video, but how can we get user data on client side, does Lucia provide any function for that

    • @ugurcodes
      @ugurcodes 3 месяца назад

      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

  • @brayanyevenes5954
    @brayanyevenes5954 3 месяца назад

    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
      @fabienpineau1580 2 месяца назад

      did you find a solution?

    • @brayanyevenes5954
      @brayanyevenes5954 2 месяца назад

      ​@@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

  • @devchi7691
    @devchi7691 3 месяца назад +1

    Can you help writing a code to display the user count from the db for this project?

    • @ugurcodes
      @ugurcodes 3 месяца назад

      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 :)

    • @devchi7691
      @devchi7691 3 месяца назад

      Would love to see you implement it in the next video ^^@@ugurcodes

  • @cuevantn
    @cuevantn 3 месяца назад +1

    sooo cool bro! can we have the github repo?

    • @ugurcodes
      @ugurcodes 3 месяца назад +1

      Hey! thanks:)
      Checkout oauth branch
      github.com/ugurkellecioglu/next-14-lucia-auth-postgresql-drizzle-typescript-example

  • @baptiste6436
    @baptiste6436 3 месяца назад +1

    Cool video, can u update the repo so that it's easier to copy code instead of retyping from video pls?

    • @ugurcodes
      @ugurcodes 3 месяца назад

      Code is available, please check oauth branch

    • @baptiste6436
      @baptiste6436 3 месяца назад

      amazing! tysm@@ugurcodes

    • @baptiste6436
      @baptiste6436 3 месяца назад +1

      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

    • @ugurcodes
      @ugurcodes 3 месяца назад

      @@baptiste6436 yes! I realized that after recording video. Thanks for the suggestion 🙏

  • @georgepaul9995
    @georgepaul9995 Месяц назад

    You said that you can reuse regular account (mail and password) when you have a google account with the same email.
    I didnt see you trying to login with email and password with the same email.
    Please explain how you can reuse accounts, because when you sign up with google the password should be null. Then after you logout , how you login with mail and password ? The obvious answer is that you need to make a regular account before sign up with google. But let;s say you sign first with google, then trying to make a regular account with the same mail. It wont work because email already exists, and also you cant login beause password is null, and that results in a error if not treated.
    [But anyways, your fetching the existing user from db was based on id, not email (user.Id === google.Id). The id was google id, as if you never thought about facebook or regular accounts. From the beginning you were against reusing accounts in code]
    Also , if you have a facebook account beside google (same mail) what would be the name saved in user table ?
    So, I think that this is the reason that 'some applications' (18:45) dont allow reusing the email. Because it is not possible if you dont strictly create an account before any ouath signup. And that's exactly the point of oauth: to avoid creating a password based account.

  • @ryanlee5336
    @ryanlee5336 3 месяца назад

    Where is the repo?

    • @ugurcodes
      @ugurcodes 2 месяца назад +1

      Hey!
      github.com/ugurkellecioglu/next-14-lucia-auth-postgresql-drizzle-typescript-example

  • @naolfekadu6101
    @naolfekadu6101 Месяц назад

    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