Skip to content

Conversation

@ancheetah
Copy link
Contributor

@ancheetah ancheetah commented Jul 23, 2025

https://pingidentity.atlassian.net/browse/SDKS-4147

Updates handling of ProtectCollector in a DaVinci flow. It removes handling of the protectsdk Start Node and instead initializes the Protect SDK and submits data collected. The Protect API is initialized with a plain module. The INIT_PROTECT flag allows for Protect to be initialized for data collection either at bootstrap or when a ProtectCollector is found in the DaVinci flow.

*/
const protectApi = getProtectApi();
const data = await protectApi.getData();
if (typeof data !== 'string' && 'error' in data) {
Copy link
Contributor

Choose a reason for hiding this comment

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

I'm a bit hesitant on this type of return type, since it could either be a string or object, but let's discuss this as a team and move forward in the new Jira ticket I'll create for universal error types throughout this SDK.

cerebrl
cerebrl previously approved these changes Jul 24, 2025
Copy link
Contributor

@cerebrl cerebrl left a comment

Choose a reason for hiding this comment

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

The previous comments will be addressed in a separate ticket as to align both this and the React sample app for PingAM.

@ancheetah ancheetah force-pushed the SDKS-4147-react-protect-module branch from 0e1d602 to e1816b3 Compare December 12, 2025 00:46
@ancheetah ancheetah removed the do not merge Do not merge label Dec 12, 2025
@ancheetah ancheetah force-pushed the SDKS-4147-react-protect-module branch 4 times, most recently from 8df8a10 to e522cc5 Compare December 13, 2025 22:40
@ancheetah ancheetah force-pushed the SDKS-4147-react-protect-module branch from e522cc5 to 441afc7 Compare December 15, 2025 20:33
Copy link
Contributor

@cerebrl cerebrl left a comment

Choose a reason for hiding this comment

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

Let's make sure we update Chris about these new additions, so he can add them to our docs.

@ancheetah ancheetah merged commit cda117f into main Dec 15, 2025
16 checks passed
@ancheetah ancheetah deleted the SDKS-4147-react-protect-module branch December 15, 2025 22:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

3 participants