Persistent sessions and Signing out a user in Sapper / Svelte (Rails API backend)

What's the use in signing in if you don't stay signed in? With the use of localStorage, we can store our JWT, AUD, and user, make sure that our subsequent requests keep us still logged in.
⏱️ Timestamps:
  • 00:00 - Introduction
  • 00:20 - Readme
  • 00:34 - Bugfix!
  • 01:34 - stores.js
  • 03:45 - Nav.svelte

💌 Newsletter:

🪐Elsewher e:
  • Twitter:
  • Twitter:
  • GitHub:

  • localStorage
  • stores in Svelte


🎬 Subscribe!
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