Is that LocalStorage user even authenticated?!

แชร์
ฝัง
  • เผยแพร่เมื่อ 10 ม.ค. 2025

ความคิดเห็น • 5

  • @yazugaming5573
    @yazugaming5573 11 หลายเดือนก่อน

    Please release the next one😭😭

  • @codaski4357
    @codaski4357 ปีที่แล้ว

    first, i want to Thank you aot for your great efforts and I have learned a lot from you in the past year and half. i have a small issue that happened with me in the past few days as I am using nuxt auth as u mentioned and if the user is auth true and at hard refresh of the page I get a glitsh of 1 sec or 2 that user is not auth and show me login and register buttons then it does change to the user data but the real issue is happened when I have a middleware in auth pages so if I made hard refresh or just typed the /dashboard directly I will logged of (because of the middle ware) and that happened because pinia is not loaded before the nuxt app is loaded. i wonder if you can make a video about how to ensure pinia states is loaded before app is mounted just like in vue app.js we used to call vuex before mount #app

  • @alexanderpozo7798
    @alexanderpozo7798 ปีที่แล้ว

    Is an example possible with jwt?

  • @holakonoob
    @holakonoob ปีที่แล้ว

    i think for next we gonna use axios interceptors am i right

    • @cdruc
      @cdruc  ปีที่แล้ว +1

      you probably *could* - but that's not what I'll do 😃 - stay tuned 😜