Skip to content
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

add buffer polyfill for webauthn-stamper #125

Merged
merged 2 commits into from
Oct 5, 2023
Merged

Conversation

andrewkmin
Copy link
Collaborator

@andrewkmin andrewkmin commented Oct 4, 2023

Summary & Motivation

Resolves Uncaught ReferenceError: Buffer is not defined in environments where Buffer is not polyfilled (e.g. non-NextJS environments)

How I Tested These Changes

examples/with-ethers-and-passkeys

Client also tried via https://pkg.csb.dev/tkhq/sdk/commit/a96c30fc/@turnkey/webauthn-stamper

@codesandbox-ci
Copy link

codesandbox-ci bot commented Oct 4, 2023

This pull request is automatically built and testable in CodeSandbox.

To see build info of the built libraries, click here or the icon next to each commit SHA.

@andrewkmin andrewkmin requested a review from r-n-o October 4, 2023 18:03
@r-n-o
Copy link
Contributor

r-n-o commented Oct 4, 2023

CI: TurnkeyActivityError: Failed to sign: Turnkey error 7: You have reached the alloted amount of signatures for your subscription. Please upgrade to continue.. Uh oh!

@@ -4480,7 +4484,7 @@ packages:
/@types/bn.js@5.1.2:
resolution: {integrity: sha512-dkpZu0szUtn9UXTmw+e0AJFd4D2XAxDnsCLdc05SfqpqzPEBft8eQr8uaFitfo/dUUOZERaLec2hHMG87A4Dxg==}
dependencies:
'@types/node': 20.6.2
'@types/node': 16.18.12
Copy link
Contributor

Choose a reason for hiding this comment

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

why is that happening? Is this on purpose?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

was just trying to figure this out - after doing some testing, it does not look like local node version (toggled using nvm) is the cause. i think it could be the installation of buffer that introduces this deep dependency change

@andrewkmin andrewkmin requested a review from r-n-o October 4, 2023 22:43
@andrewkmin andrewkmin merged commit d5876c4 into main Oct 5, 2023
3 checks passed
@andrewkmin andrewkmin deleted the andrew/buffer-polyfill branch October 5, 2023 15:11
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.

2 participants