Skip to content

fix(auth): forward RequestInit options in Api.request - #1494

Open
ashwanisingh011 wants to merge 1 commit into
RocketChat:developfrom
ashwanisingh011:fix/preserve-request-init-auth-api
Open

ashwanisingh011 wants to merge 1 commit into
RocketChat:developfrom
ashwanisingh011:fix/preserve-request-init-auth-api

Conversation

@ashwanisingh011

Copy link
Copy Markdown

Forward RequestInit options in Api.request

Acceptance Criteria fulfillment

  • Spread ...config in Api.request() so signal, credentials, mode, and other RequestInit fields reach fetch()
  • Default config: RequestInit = {} and check data !== null && data !== undefined before stringifying request payloads
  • Verified with mocked fetch() checks, yarn build, yarn format:check, and yarn lint

Fixes #1493

PR Test Details

Note: The PR will be ready for live testing at https://rocketchat.github.io/EmbeddedChat/pulls/pr-<PR_NUMBER> after approval. Contributors are requested to replace <PR_NUMBER> with the actual PR number.

This branch has not been deployed

No deployments
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.

bug(auth): Api.request() drops RequestInit options such as signal and credentials

1 participant