Nest.js Browser Cookie based authentication with Passport JWT

Поділитися
Вставка
  • Опубліковано 22 жов 2024

КОМЕНТАРІ • 13

  • @pepikkk10
    @pepikkk10 3 місяці тому

    Thank you SO much! well explained!!!

  • @bpospanov
    @bpospanov Рік тому +2

    THANKS A LOT

  • @hashamkhan5121
    @hashamkhan5121 Рік тому +1

    Thanks a lot for this wonderful lesson.
    Can you please help me a bit?
    The cookie is set in browser when i call the api directly in browser, but it is not set in browser when i make api call from my front end React app, what can be the issue?
    I have verified my cors police configuration. I have searched the web but still could not solve my problem.
    Thanks

    • @tigrantech
      @tigrantech  Рік тому +1

      That might be because the API doesn’t have access to the Frontend domain name. Make sure that the UI client has the “credentials” enabled for the API origin, otherwise the Frontend can’t share the cookies

    • @e.magnoneto5101
      @e.magnoneto5101 Рік тому

      hi,do you had fixed this problem? i had exactly the same thing in my project.

    • @hashamkhan5121
      @hashamkhan5121 Рік тому

      @@e.magnoneto5101 just Make sure you do the below before making login endpoint call
      axios.defaults.withCredentials = true

  • @mustafa-ahmed-dev
    @mustafa-ahmed-dev Рік тому

    Thank you, very good explanation

  • @cuberos7430
    @cuberos7430 Рік тому +1

    Amazing simple precise confortable explanation. Thanks a lot .Save my time.Keep making more amazing tutorials 💪🦾

  • @koldmane392
    @koldmane392 Рік тому

    Thank you!

  • @mdsajaldeowan1054
    @mdsajaldeowan1054 6 місяців тому

    Thanks for the great video exactly the video I was looking for once again thank you for the informative video

  • @ephremdemelew6218
    @ephremdemelew6218 Рік тому

    great video

  • @franciscooteiza
    @franciscooteiza 9 місяців тому +1

    You look scared, are you okay? Are you afraid that someone will know a dark secret about you?

    • @tigrantech
      @tigrantech  9 місяців тому +1

      NestJS is scary 😱