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 Request Stamping Functionality to Server and Browser SDK #410

Merged
merged 3 commits into from
Nov 1, 2024

Conversation

omkarshanbhag
Copy link
Contributor

@omkarshanbhag omkarshanbhag commented Oct 30, 2024

Summary & Motivation

This PR adds functionality to sdk-browser and sdk-server to generate and return stamped requests of each call.

It does this by updating the codegen.js files in each package to generate stamping versions of each basic method that is effectively a call to the Turnkey API, returning the stamped request WITHOUT actually sending the request.

How I Tested These Changes

Tested by creating a stamps using the new functions created in sdk-server and then using those stamped requests to successfully make requests to the Turnkey API.

Did you add a changeset?

YES -- a changeset has been added!

If updating one of our packages, you'll likely need to add a changeset to your PR. To do so, run pnpm changeset. pnpm changeset will generate a file where you should write a human friendly message about the changes. Note how this (example) includes the package name (should be auto added by the command) along with the type of semver change (major.minor.patch) (which you should set).

These changes will be used at release time to determine what packages to publish and how to bump their version. For more context see this comment.

Copy link

codesandbox-ci bot commented Oct 30, 2024

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.

Copy link
Collaborator

@andrewkmin andrewkmin left a comment

Choose a reason for hiding this comment

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

nice!

@andrewkmin
Copy link
Collaborator

the only ask here is that you add a corresponding changeset

@omkarshanbhag omkarshanbhag merged commit 6b3ea14 into main Nov 1, 2024
5 checks passed
@omkarshanbhag omkarshanbhag deleted the omkar/browser-server-stamping branch November 1, 2024 21:34
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