Password provider: setupUsernamePassword - #383
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub. 1 Skipped Deployment
|
de07136 to
db808a3
Compare
db808a3 to
1b0f630
Compare
| * The provider function that completes an authentication flow should | ||
| * call this function when it has authenticated an account and return | ||
| * the result. | ||
| * It will be passed a {@link ProviderHelpers} bundle, provided by Convex |
There was a problem hiding this comment.
Claude decided to change the parameters of the provider function in order to make it work. I don't feel great about it and I wonder if it would make more sense for providers to only receive a reference to the core component.
There was a problem hiding this comment.
I don't mind the param change that much, and I like providing something more specific than the whole component for clarity.
Maybe we'll find that we're just repackaging the core component API and it makes sense to just collapse it back to that, but this seems fine for now.
0427738 to
e543b5f
Compare
e543b5f to
eb69f5a
Compare
eb69f5a to
6d8c361
Compare
1474d71 to
dc12859
Compare
| // so this call should not fail. | ||
| // Throwing so that the transaction doesn’t commit. | ||
| // | ||
| // TODO(nicolas) can we improve this? |
There was a problem hiding this comment.
I kind of want to change setPassword to succeed or throw a Error, and ask from the caller that they run input validation first, to make sure we don't need to revert the user creation
dc12859 to
d1a1053
Compare
1699777 to
aed7187
Compare
| * The provider function that completes an authentication flow should | ||
| * call this function when it has authenticated an account and return | ||
| * the result. | ||
| * It will be passed a {@link ProviderHelpers} bundle, provided by Convex |
There was a problem hiding this comment.
I don't mind the param change that much, and I like providing something more specific than the whole component for clarity.
Maybe we'll find that we're just repackaging the core component API and it makes sense to just collapse it back to that, but this seems fine for now.
2073301 to
94dee2c
Compare
Merge activity
|
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
94dee2c to
b29a8a6
Compare

No description provided.