-
Notifications
You must be signed in to change notification settings - Fork 11
SDKS-4147: React DV - Handle Protect collector with module #58
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
Conversation
4c9c97f to
7e742fa
Compare
| */ | ||
| const protectApi = getProtectApi(); | ||
| const data = await protectApi.getData(); | ||
| if (typeof data !== 'string' && 'error' in data) { |
There was a problem hiding this comment.
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
left a comment
There was a problem hiding this 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.
0e1d602 to
e1816b3
Compare
8df8a10 to
e522cc5
Compare
e522cc5 to
441afc7
Compare
cerebrl
left a comment
There was a problem hiding this 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.
https://pingidentity.atlassian.net/browse/SDKS-4147
Updates handling of ProtectCollector in a DaVinci flow. It removes handling of the
protectsdkStart 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.