Skip to content

add createSessionFromEmbeddedKey #612

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

Merged
merged 8 commits into from
Apr 27, 2025
Merged

add createSessionFromEmbeddedKey #612

merged 8 commits into from
Apr 27, 2025

Conversation

moeodeh3
Copy link
Contributor

Summary & Motivation

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

vercel bot commented Apr 26, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
sdk-email-auth ✅ Ready (Inspect) Visit Preview 💬 Add feedback Apr 27, 2025 0:29am
sdk-otp-auth ✅ Ready (Inspect) Visit Preview 💬 Add feedback Apr 27, 2025 0:29am

Copy link

codesandbox-ci bot commented Apr 26, 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.

Latest deployment of this branch, based on commit ab45d29:

Sandbox Source
@turnkey/example-react-components Configuration

@vercel vercel bot temporarily deployed to Preview – sdk-email-auth April 26, 2025 04:41 Inactive
@vercel vercel bot temporarily deployed to Preview – sdk-otp-auth April 26, 2025 04:41 Inactive
@vercel vercel bot temporarily deployed to Preview – sdk-otp-auth April 26, 2025 05:05 Inactive
@vercel vercel bot temporarily deployed to Preview – sdk-email-auth April 26, 2025 05:05 Inactive
@vercel vercel bot temporarily deployed to Preview – sdk-otp-auth April 26, 2025 05:16 Inactive
@vercel vercel bot temporarily deployed to Preview – sdk-email-auth April 26, 2025 05:16 Inactive
@vercel vercel bot temporarily deployed to Preview – sdk-email-auth April 26, 2025 05:43 Inactive
@vercel vercel bot temporarily deployed to Preview – sdk-otp-auth April 26, 2025 05:43 Inactive
* - Schedules session expiration handling.
* - If this is the first session created, it is automatically set as the selected session.
* - Calls `onSessionCreated` callback if provided.
*
Copy link
Contributor

@amircheikh amircheikh Apr 26, 2025

Choose a reason for hiding this comment

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

@param subOrgId

*/
const createSessionFromEmbeddedKey = useCallback(
async ({
subOrganizationId,
Copy link
Contributor

Choose a reason for hiding this comment

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

Not blocking but, we can probably optionally allow passing in a private key. This way, dev doesn't have to rely on using our createEmbeddedKey function

@vercel vercel bot temporarily deployed to Preview – sdk-otp-auth April 26, 2025 18:13 Inactive
@vercel vercel bot temporarily deployed to Preview – sdk-email-auth April 26, 2025 18:13 Inactive
@moe-dev moe-dev marked this pull request as ready for review April 27, 2025 00:25
@moe-dev moe-dev merged commit 866334f into main Apr 27, 2025
8 checks passed
@moe-dev moe-dev deleted the moeO/apiKeySession branch April 27, 2025 00:29
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.

3 participants