ycliper

Популярное

Музыка Кино и Анимация Автомобили Животные Спорт Путешествия Игры Юмор

Интересные видео

2025 Сериалы Трейлеры Новости Как сделать Видеоуроки Diy своими руками

Топ запросов

смотреть а4 schoolboy runaway турецкий сериал смотреть мультфильмы эдисон
Скачать

Why use localStorage instead of cookies for our JWT in Svelte

programming

screencast

tutorial

video

tutorial video

coding

learn to code

how to code

learn programming

learn to program

free code

free coding tutorials

free programming tutorials

svelte

sveltejs

sapper

sapperjs

how to code svelte

how to code sapper

how to make a sapper app

how to program sapper

how to program svelte

svelte basics

coding svelte

why use localstorage vs cookies for jwt

how to use jwt with localstorage

using jwt for authentication

auth jwt

Автор: David Parker

Загружено: 2021-04-12

Просмотров: 3673

Описание: NOTE!!! We'll be getting to using a httpOnly secure cookie a few episodes.

The common explanation for using cookies and httpOnly rather than localStorage is due to XSS issues. These are super valid concerns- we don't want to lose our tokens!

So what can we do? Well, in this episode, I discuss why we use localStorage (cross domains, APIs, mobile apps) and how we navigate around it using AUDs and short token timeouts.

Discuss below! What do you think? Will AUDs work for you? If not, why not? Do you just need to support just a single domain? Then you should definitely use cookies!

🤯 Support on Patreon
  / davidwparker  
https://www.buymeacoffee.com/davidwpa...

⏱️ Timestamps:
00:00 - Introduction
00:40 - Readme
01:35 - Github discussion on why using localStorage vs cookies
03:10 - Demo
04:00 - Nav changes
04:20 - Settings changes
05:28 - new stores
05:45 - _layout.svelte changes
06:42 - sign in changes
07:40 - helpers (browser detector and AUD builder)
10:40 - Discuss! Do you think AUDs work for you?

💌 Newsletter:
https://www.programmingtil.com/

🪐Elsewhere:
Twitter:   / davidwparker  
Twitter:   / programmingtil  
GitHub: https://github.com/davidwparker

💭Concepts:
localStorage vs Cookies for JWTs

📚Resources:
https://github.com/davidwparker/progr...
https://github.com/waiting-for-dev/de...

🎬 Subscribe!
http://bit.ly/subdavidwparker

My name is David W Parker and I’m creating and publishing videos on ProgrammingTIL to help teach anyone and everyone who wants to code. I’m a huge fan of Ruby on Rails, Svelte, TailwindCSS, and WebGL. I’ve used React a lot in the past, as well as some Vue and AngularJS. I’ve done some professional Python and Django. I like to create real applications and my tutorials will walk you through how to build something real from beginning-to-end.

#svelte #sapper

Не удается загрузить Youtube-плеер. Проверьте блокировку Youtube в вашей сети.
Повторяем попытку...
Why use localStorage instead of cookies for our JWT in Svelte

Поделиться в:

Доступные форматы для скачивания:

Скачать видео

  • Информация по загрузке:

Скачать аудио

Похожие видео

© 2025 ycliper. Все права защищены.



  • Контакты
  • О нас
  • Политика конфиденциальности



Контакты для правообладателей: [email protected]