Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WIP tweaks to work better in the browser #1

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

devdoshi
Copy link

  • autoformatting
  • use correct supergood remote config
  • use browser crypto
  • use msw interceptors for fetch and xhr

- use correct supergood remote config
- use browser crypto
- use msw interceptors for fetch and xhr
@devdoshi devdoshi requested a review from aklarfeld February 17, 2024 02:20
).toString('base64')}`,
'Supergood-api': 'supergood-browser',

authorization: `Basic ${btoa(`${clientId}:${clientSecret}`)}`,
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  • decide on auth approach (requires corresponding backend changes)

if (!shouldIntercept) {
return;
}
requestIdsToIntercept.add(requestId);
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  • need to clarify the expected behavior with regard to the remote config. as written, a response could theoretically arrive before the requestId is added to the set

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant