supertokens-website icon indicating copy to clipboard operation
supertokens-website copied to clipboard

Restructure/split up fetch.ts

Open porcellus opened this issue 2 years ago • 0 comments

Current problems:

  • There is a lot of repeated code between interceptors
  • The current implementation is hard to change
  • fetch.ts contains multiple classes with lots of separate responsibilites

We should:

  • Make it clearer which classes/instances store the current state
  • Make it easier to change by separating responsibilities into new classes/modules
  • Make the possible states/state changes easier to see/follow.

porcellus avatar Dec 28 '22 16:12 porcellus