issues
search
supertokens
/
supertokens-website
Frontend SDK for SuperTokens - for session management + automatically refreshing sessions
https://supertokens.com
Other
54
stars
13
forks
source link
Restructure/split up fetch.ts
#181
Open
porcellus
opened
1 year ago
porcellus
commented
1 year ago
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.
Current problems:
fetch.ts
contains multiple classes with lots of separate responsibilitesWe should: