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

EWK Minor Changes #469

Merged
merged 5 commits into from
Jan 14, 2025
Merged

EWK Minor Changes #469

merged 5 commits into from
Jan 14, 2025

Conversation

moe-dev
Copy link
Contributor

@moe-dev moe-dev commented Jan 8, 2025

Summary & Motivation

  1. Custom session lengths
  2. Custom width of auth component
  3. Custom generated wallets during create suborg request
  4. Some minor css fixes
  5. Enter to continue
  6. Expose WalletAccount type from SDK Browser/Server as well as all Default accounts

How I Tested These Changes

Did you add a changeset?

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 Jan 8, 2025

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.

@@ -6,6 +6,7 @@ type OauthRequest = {
suborgID: string;
oidcToken: string;
targetPublicKey: string;
sessionLength?: number | undefined;
Copy link
Collaborator

Choose a reason for hiding this comment

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

Nit: we should specify either in name or comment that this is expressed in seconds

Another thing is around type: we're going to cast to string anyways so we could just expect a string all the way through, but at the same time number is probably more intuitive

Copy link
Contributor Author

Choose a reason for hiding this comment

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

yep agreed! I'm indifferent on number vs string

"@turnkey/sdk-react": patch
---

Add session length customization, more css customization and fixes
Copy link
Collaborator

Choose a reason for hiding this comment

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

Can you detail the fixes here?

@moe-dev moe-dev force-pushed the moe/minor-ewk-updates-jan6 branch 2 times, most recently from d43774c to 02326c5 Compare January 14, 2025 15:14
@moe-dev moe-dev force-pushed the moe/minor-ewk-updates-jan6 branch from 02326c5 to b90947e Compare January 14, 2025 15:20
@@ -7,7 +7,7 @@ type OtpAuthRequest = {
otpId: string;
otpCode: string;
targetPublicKey: string;
sessionLength?: number | undefined;
sessionLength?: number | undefined; // Desired expiration time in seconds for the generated API key
Copy link
Collaborator

Choose a reason for hiding this comment

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

Ah I meant we could add seconds to the param name like sessionLengthSeconds (similar to expirationSeconds). A little verbose, but might be easier for developers when their editor populates params (they might not see the actual code/comment, but should see what params are available).

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.

🚢

@@ -6,6 +6,7 @@ type OauthRequest = {
suborgID: string;
oidcToken: string;
targetPublicKey: string;
sessionLengthSeconds?: number | undefined; // Desired expiration time in seconds for the generated API key
Copy link
Collaborator

Choose a reason for hiding this comment

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

generated API key or auth credential; potato potato

@moe-dev moe-dev merged commit 67178e6 into main Jan 14, 2025
5 checks passed
@moe-dev moe-dev deleted the moe/minor-ewk-updates-jan6 branch January 14, 2025 18:01
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