Skip to content

chaoky/react-deno-auth

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Readme

Setup

Docker

docker run -p 8000:8000 --rm $(docker build -q .)

Auth Service

  • JWT for stateless authentication.
  • Refresh token in http only cookie for session persistence
  • Deno for testing purposes, also, having TypeScript by default is pretty neat
  • Using in memory Object as DB for the reduced complexity

Client

  • React spa
  • use local storage with username as a proxy for the refresh token to avoid network calls

What’s Next

  • work on edge cases
  • Use an actual data base
  • remove refresh tokens from device list when exp
  • add route to remove refresh tokens manually (i.e logoff remotely)
  • add more precise type interfaces
  • return proper http error codes
  • use SSR?
  • isolate authentication in it’s own service

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published