Skip to content

@W-17554979@ Commerce-sdk-react readme updates#2212

Merged
vcua-mobify merged 3 commits intodevelopfrom
sdk-doc-updates
Jan 17, 2025
Merged

@W-17554979@ Commerce-sdk-react readme updates#2212
vcua-mobify merged 3 commits intodevelopfrom
sdk-doc-updates

Conversation

@vcua-mobify
Copy link
Contributor

The readme is used to generate SDK docs: https://salesforcecommercecloud.github.io/pwa-kit/#:~:text=library%20supports%20the-,Public%20Client%20login%20flow.,-Shopper%20Session%20Initialization

This PR is done in collaboration with the docs team to update SLAS private client documentation.

)
}
```
#### Disable slas private warnings
Copy link
Contributor Author

Choose a reason for hiding this comment

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

I'm opting to remove this section around how you can set a client secret directly to the SDK since this can lead to the client secret appearing client-side. Even in the non-PWA scenario, you will want to protect the client secret by adding it server side via a BFF layer.

@vcua-mobify vcua-mobify marked this pull request as ready for review January 17, 2025 19:09
@vcua-mobify vcua-mobify requested a review from a team as a code owner January 17, 2025 19:09
Copy link
Contributor

@unandyala unandyala left a comment

Choose a reason for hiding this comment

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

LGTM


const AppConfig = ({children}) => {
const headers = {
'correlation-id': correlationId
Copy link
Contributor

Choose a reason for hiding this comment

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

May be add comment explaining the need for correlation id

Copy link
Contributor Author

Choose a reason for hiding this comment

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

This bit was just me copying the code that we already have inside app-config in the template-retail-react-app and the generator so that the example more closely aligns with the actual code that developers will see.

@vcua-mobify vcua-mobify merged commit 710037d into develop Jan 17, 2025
26 checks passed
@vcua-mobify vcua-mobify deleted the sdk-doc-updates branch July 16, 2025 23:00
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.

3 participants