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

Update user auth abstraction #515

Merged
merged 6 commits into from
Mar 10, 2025
Merged

Update user auth abstraction #515

merged 6 commits into from
Mar 10, 2025

Conversation

moe-dev
Copy link
Contributor

@moe-dev moe-dev commented Feb 24, 2025

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

codesandbox-ci bot commented Feb 24, 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.

deleteIds?: string[]; // Authenticator IDs to delete
};
oauthProviders?: {
add?: any[]; // OAuth provider objects to create
Copy link
Contributor

Choose a reason for hiding this comment

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

any reason why these are of type any?

}

// Execute all additions in parallel
return Promise.all(promises);
Copy link
Contributor

Choose a reason for hiding this comment

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

Are we surfacing any errors to the user in the situation where one or more of the promises are not successful?

deleteIds?: string[]; // OAuth provider IDs to delete
};
apiKeys?: {
add?: any[]; // API key objects to create
Copy link
Contributor

Choose a reason for hiding this comment

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

Same comment here as @moeodeh3 above, are we able to type this?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Was thinking w.r.t code maintenance purposes since we can't reference the type directly afaik

@moe-dev moe-dev merged commit 284eeaa into main Mar 10, 2025
5 checks passed
@moe-dev moe-dev deleted the moe/update-auth branch March 10, 2025 20:57
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