You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Unit tests have been written or updated as necessary.
The code adheres to the repository's coding standards.
Relevant documentation has been added or updated.
No new warnings or errors have been introduced.
SonarCloud issues have been reviewed and addressed.
QA Passed
Testing Process
Additional Notes
Summary by CodeRabbit
New Features
Authentication requests can now be configured to send or omit cookies using an environment setting. The setting defaults to false, so cookies are omitted unless explicitly enabled. This behavior applies to both regular and desktop sign-in flows.
No actionable comments were generated in the recent review.
Walkthrough
Both auth clients now set withCredentials according to the sendCookiesOnAuthRequests environment variable. The environment example sets this variable to false. A test verifies that both clients disable credentials when the setting is false.
Changes: Auth credential configuration
Layer / File(s)
Summary
Configure and apply auth credentials .env.example, src/services/env.service.ts, src/app/core/factory/sdk/index.ts, src/app/core/factory/sdk/index.test.ts
The environment service maps REACT_APP_SEND_COOKIES_ON_AUTH_REQUESTS. Both auth clients use a shared helper that enables withCredentials only when the setting equals 'true'. A test verifies that both clients set withCredentials to false when the setting is 'false'.
Auth requests now send cookies only when the REACT_APP_SEND_COOKIES_ON_AUTH_REQUESTS build flag is 'true'. No concrete defect was found in the change. Confirm that the production build sets the flag before deploying.
Pre-merge checks: 4 · 1
Failed checks: 1 warning
Check name
Status
Explanation
Resolution
Description check
The description contains only the repository template. It does not provide a change summary, related issue or pull request details, checklist status, testing process, or additional notes.
Complete the Description, Checklist, Testing Process, and Additional Notes sections. Explain the environment flag behavior, identify related work or state that none exists, record completed checks, and document the tests that verify credent…
Passed checks: 4 passed
Check name
Status
Explanation
Title check
The title is concise and describes the main behavior change: credentials are sent only when enabled for production. It does not mention that the behavior uses an environment flag, but it remains suffi…
Docstring Coverage
No eligible functions found in the changed files. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff with cyclomatic complexity of at least 2. Documentat…
Linked Issues check
Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check
Check skipped because no linked issues were found for this pull request.
Full details: Title check
Explanation
The title is concise and describes the main behavior change: credentials are sent only when enabled for production. It does not mention that the behavior uses an environment flag, but it remains sufficiently related to the changeset.
Full details: Docstring Coverage
Explanation
No eligible functions found in the changed files. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff with cyclomatic complexity of at least 2. Documentation-only edits and deletions within surviving functions are included; unchanged diff context and fully deleted functions are excluded. Analyzed 0 functions across 3 files. (1 skipped: 1 unsupported.)
Full details: Description check
Resolution
Complete the Description, Checklist, Testing Process, and Additional Notes sections. Explain the environment flag behavior, identify related work or state that none exists, record completed checks, and document the tests that verify credential handling.
Finishing Touches
Generate docstrings
Commit to this branch
Create a new PR
Generate unit tests (beta)
Commit to this branch
Create a new PR
Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.
Run CodeRabbit Verify to test the changes in this pull request.
Recent review info
Run configuration
Source mode: Auto
Repository: Unavailable
Branch: Unavailable
File: No configuration file from this repository applied
Commit: Unavailable
Layers: defaults
Review profile: CHILL
Plan: Advanced
Run ID: 2819f0d2-8f91-4ad1-b25c-56aa3c82eca3
Commits
Reviewing files that changed from the base of the PR and between f17bdad and 21fd1fd.
Files selected for processing: 4
.env.example
src/app/core/factory/sdk/index.test.ts
src/app/core/factory/sdk/index.ts
src/services/env.service.ts
Included review availability: This review used your included allowance. Your plan provides up to 2 included reviews per hour; 0 remain after this review.
@larryrider@CandelR ended up setting this on a flag instead of relying on prod so we can toggle it in case it's required. Also, this should work with preview too
Can you help me to set the envar? REACT_APP_SEND_COOKIES_ON_AUTH_REQUESTS = true
@larryrider@CandelR ended up setting this on a flag instead of relying on prod so we can toggle it in case it's required. Also, this should work with preview too
Can you help me to set the envar? REACT_APP_SEND_COOKIES_ON_AUTH_REQUESTS = true
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Related Issues
Related Pull Requests
Checklist
Testing Process
Additional Notes
Summary by CodeRabbit
false, so cookies are omitted unless explicitly enabled. This behavior applies to both regular and desktop sign-in flows.