You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Provide common hooks for custom extensions of AuthUser #3709
In case the developer wants to use a custom profile (or any other entity which should have a 1:1 relationship with an AuthUser) they would currently have to add their user profile migration / creation code in a bunch of places (e.g. the 2 variants of migrations, and the 2 variants of email sign ups (invites and registration)).
We should offer a common way to handle such side-effects, so that they would only have to register one function per package and can rely on the module to call into it whenever it's appropriate.
Flag for importProfile in migration is fine, but migration methods should receive enough information about the migration to do it themselves
Ensure transaction can be passed into the migration functions
For the email account endpoint we stick to letting the developer overwrite those methods in their subclass, where they can call directly into the underlying module
If they don't want to make use of the profile behavior, they should probably just write their own endpoint around serverpod_auth_email_account anyway, instead of wrangling the provided one into shape
Activity
tp commentedon Jun 24, 2025
Decision:
importProfilein migration is fine, but migration methods should receive enough information about the migration to do it themselvestransactioncan be passed into the migration functionsserverpod_auth_email_accountanyway, instead of wrangling the provided one into shapefeat(auth2): Add hook for when user is migrated in `serverpod_auth_mi…
feat(auth2): Add hook for when user is migrated in `serverpod_auth_mi…
feat(auth2): Add hook for when user is migrated in `serverpod_auth_mi…