import { useAuth } from '@kerne/react';function RegisterForm() { const { register } = useAuth(); await register({ email, password, name }); // name is split into first_name/last_name}
Whether this succeeds depends on the tenant’s registration mode - if invitations are required, validate the token/code before showing this form at all, rather than letting the user hit a rejection here.Same response shape as login - use useAuth().user for the full profile, not the return value of register().