-
Notifications
You must be signed in to change notification settings - Fork 570
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add eligibility check and protect export for stage and local (#2451)
* chore: prettier * allow three-domain-secure component * refactor threedomainsecure component to class * correct typo * refactor test for class component * chore: fix lint * chore: fix flow issues * pin flow-remove-types and hermes-parser version due to flow errors * return methods only instead of entire class * modify interface to reflect future state * resolve WIP stash merge * implement isEligible request to API * change sdktoken to idtoken * modify protectedExport to Local or Stage check * change protectedexport to local/stage export * pass transaction context as received * fix flow type errors * linting / flow fixes and skipping test for now * add isEligible test skeleton * check for payer-action rel in links * throw error on API error isntead of false * wip: add test for isEligible * remove comments * additional test for isEligble * remove console logs * change name of export to devEnvOnly * move url to constants file * resolve dist merge conflict --------- Co-authored-by: Shraddha Shah <spshah@paypal.com>
- Loading branch information
Showing
5 changed files
with
248 additions
and
22 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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