0106bc4ea0
BREAKING CHANGE: sup config now derives entries from package.json#exports and a server/client glob instead of manual lists; module structure follows flat + barrel convention with .server.js/.client.js runtime suffixes
23 lines
678 B
JavaScript
23 lines
678 B
JavaScript
import {
|
|
register as _register,
|
|
resetPassword as _resetPassword,
|
|
login,
|
|
requestPasswordReset,
|
|
verifyUserEmail,
|
|
updateUser
|
|
} from '../../core/users/auth.js';
|
|
import { sendPasswordChangedEmail } from './email.js';
|
|
|
|
// Inject sendPasswordChangedEmail — the JSX template lives in features/auth so
|
|
// the auth feature stays self-contained and core/users can remain pure server
|
|
// logic without JSX.
|
|
export function register(userData) {
|
|
return _register(userData);
|
|
}
|
|
|
|
export function resetPassword(resetData) {
|
|
return _resetPassword(resetData, { onPasswordChanged: sendPasswordChangedEmail });
|
|
}
|
|
|
|
export { login, requestPasswordReset, verifyUserEmail, updateUser };
|