-
Notifications
You must be signed in to change notification settings - Fork 1
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
Locker complience fixed #131
Conversation
If these changes look good, signoff on them with:
If they aren't any good, please remove them with:
|
@@ -136,7 +137,6 @@ export class AccessToken { | |||
} | |||
if (this.signing_key) { | |||
// TODO: dpop does not have a CommonJS variant. | |||
const { default: dpopFn } = await import('dpop'); |
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 think this is to work around the dpop library not exporting a CJS variant. Node supports dynamic import even in CJS so we may have to do something else here - or fork the library, most likely
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.
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 thinking we can fork as opentdf and publish to GitHub's package registry. Adding the CommonJS output should be pretty similar to what we are doing with this library now
Signed-off-by: sivanov <sivanov.ctr@virtru.com>
e69c4df
to
7c87dc2
Compare
Kudos, SonarCloud Quality Gate passed! 0 Bugs No Coverage information |
* Locker complience fixed * 🤖 🎨 Autoformat Signed-off-by: sivanov <sivanov.ctr@virtru.com> * CJS removed * Readme change Signed-off-by: sivanov <sivanov.ctr@virtru.com> Co-authored-by: ivanovSPvirtru <ivanovSPvirtru@users.noreply.github.com>
* Locker complience fixed * 🤖 🎨 Autoformat Signed-off-by: sivanov <sivanov.ctr@virtru.com> * CJS removed * Readme change Signed-off-by: sivanov <sivanov.ctr@virtru.com> Co-authored-by: ivanovSPvirtru <ivanovSPvirtru@users.noreply.github.com>
Locker api also doesn't like dynamic import