Это видео недоступно.
Сожалеем об этом.

Vue Login and Handling the JWT Token | Vue Authentication #4

Поделиться
HTML-код
  • Опубликовано: 18 авг 2020
  • 👉 Check our website: scalablescripts.com
    Backend: • Api Authentication Wit...
    Learn to Authenticate using Vue.js. In this video, we will create a Login component where we will send the Login Credentials and get back a JWT Token. Then we will use that JWT Token as a Bearer Token in the Request Headers to retrieve the Authenticated User. We will also add the Logout functionality.
    #vuejs #jwt

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

  • @ScalableScripts
    @ScalableScripts  3 года назад +2

    You can check these playlists if you are interested:
    VueJS and Laravel JWT Authentication: ruclips.net/p/PLlameCF3cMEs7ErSWENv03zOKtH5NTG61
    VueJS and Django JWT Authentication: ruclips.net/p/PLlameCF3cMEvj7fV-Szcaz_ve303e4AxX
    VueJS and NodeJS JWT Authentication: ruclips.net/p/PLlameCF3cMEsjpIRxfB9Rjici3aMCaQVo
    VueJS and Golang JWT Authentication: ruclips.net/p/PLlameCF3cMEvSY8iQ6QBVE8VRK4UiZZ33
    VueJS and NestJS JWT Authentication: ruclips.net/p/PLlameCF3cMEujfD19Si2VNRlFEyDa_ZJb
    VueJS and Deno JWT Authentication: ruclips.net/p/PLlameCF3cMEuDSusZHXGeIZ0Axmd74aPc

    • @117clouds
      @117clouds 2 года назад +1

      please codepen

  • @TDhanunjay
    @TDhanunjay 2 года назад +8

    I saw many RUclips videos, on jwt authentication. But finally when I watched this video. Clear cut explanation. Thanks

  • @anvarturdaliev9834
    @anvarturdaliev9834 2 года назад +5

    You are amaizing
    I bought a lot of courses, but you are explaining much better, and for free.

  • @diogoalbertor.kirchoff5275
    @diogoalbertor.kirchoff5275 3 месяца назад

    Legal, aqui me ajudou! Precisei disso para costurar o front no banck-end nas funções de confirmar e-mail. Eu fiz com o localStorage porque não aprendi ainda a armazenar com Cookie, e precisava deixar funcional. Com o tempo, vou alterar para o armazenamento em Cookie. Bom vídeo, bem explicativo!

  • @alexdavidhurtadoyeneris7116
    @alexdavidhurtadoyeneris7116 Год назад +1

    Hi, thank you, very useful. A huge from Barranquilla, Colombia

  • @abylaysanduzel5117
    @abylaysanduzel5117 3 года назад +3

    error: "Unauthorized", i did same like on this tutorial. what goes wrong?

  • @tranquility_base
    @tranquility_base 2 года назад +2

    Saved me a lot of time. Thanks!

  • @kateliu5416
    @kateliu5416 3 года назад +1

    excause me,
    i take to login to post ,but not receive token,
    how can i do?

  • @user-vu5rc8jl7z
    @user-vu5rc8jl7z 8 месяцев назад

    this video help me a lot Thank you!

  • @abelangelciertoespiritu3145
    @abelangelciertoespiritu3145 Год назад

    Good, thanks for this material

  • @user-le1nf2zf9l
    @user-le1nf2zf9l 3 года назад

    What does happen when user open your app in new tab? I repeated your steps but I get on to auth page. And yes, I still have user token in my header.

  • @mustafaahmed6307
    @mustafaahmed6307 3 года назад +1

    How did you show token in console ? From where ?

  • @ruirodrigues705
    @ruirodrigues705 13 дней назад

    btw, you should not store your jwt in local storage...

  • @sankhadeepsarkar7332
    @sankhadeepsarkar7332 2 года назад

    You saved my life.

  • @thenightcoder7
    @thenightcoder7 3 года назад +4

    Hey nice video, but setting localstorage is not good practice for access_token.

  • @hassanadel5256
    @hassanadel5256 Год назад

    Awesome 👍

  • @bobbiechannel864
    @bobbiechannel864 3 года назад +1

    thank so much

  • @LuxKal1122
    @LuxKal1122 2 года назад

    idk where do you get the token string

  • @martinn1071
    @martinn1071 3 года назад +1

    thanks !!!!

  • @kavindumadushan5956
    @kavindumadushan5956 2 года назад

    thank you

  • @scottmcmahon7209
    @scottmcmahon7209 3 года назад

    Why not put the token in the cookies instead of local storage?

    • @spythere
      @spythere 3 года назад

      Both are very bad practice, it's not a secure option. Better way is to send the token with an auth header from the server and refresh it when you need it.

  • @eneomaos33
    @eneomaos33 Год назад

    Thank you!!!!!!!!

  • @georgegoldmanonyedikachijo9330
    @georgegoldmanonyedikachijo9330 3 года назад

    please am getting "We're sorry but App doesn't work properly without JavaScript enabled. Please enable it to continue" in network preview tab on the dev tools in all my browsers

  • @pro.grammer
    @pro.grammer Год назад

    which ide is this
    :)

  • @happychristian1389
    @happychristian1389 3 года назад

    getting missing grant type

  • @natnaelghirma2617
    @natnaelghirma2617 3 года назад

    that accent is cute

  • @erenchuang3352
    @erenchuang3352 2 года назад

    thx!

  • @HUBTESLA
    @HUBTESLA 3 года назад

    your tutorial is not good. How we can have a token if we didn't initialize it ?

    • @ScalableScripts
      @ScalableScripts  3 года назад

      You should read the video descriptions, anyway here is a better tutorial: ruclips.net/video/ULFAgn2ITko/видео.html

    • @renisrrenis9225
      @renisrrenis9225 9 месяцев назад

      @@ScalableScripts what read in video descriptions? The link where you get sent to your stupid monetized website? yeah right loser.

  • @28shakil
    @28shakil 2 года назад

    where should the axios.get request go? I do not have any endpoint named user