Problem description & objective: We run a beta programme where new users register via a Stripe checkout. Once they have successfully registered, we would like to automatically invite these users into our app via a backend function (confirmBetaRegistration) so that they can then log in and use their premium month.
What we have tried: Within our Deno backend function (confirmBetaRegistration.js), we have attempted to call base44.asServiceRole.users.inviteUser(email, role) to add the user to the authentication system following beta confirmation.
Why it isn’t working: The call fails with a TypeError: Cannot read properties of undefined (reading “inviteUser”). The Base44 documentation confirms that inviteUser is currently only available in user authentication mode (base44.auth) and not in the base44.asServiceRole context. This means that an automated backend function cannot invite users, as it does not have an active user login context. As a result, beta users do not appear in the dashboard under ‘Users’ and cannot log in, even if their UserProfile and BetaTester entries are correct.
Feature request: We would like the functionality for inviting users (inviteUser or a similar method) to be made available from backend functions within the base44.asServiceRole context. This is essential for automated user onboarding workflows and other scenarios where users need to be invited programmatically without an active UI login context
Feature_request.pdf
63.7 KB• Document
Please authenticate to join the conversation.
In Review
Feature Request
About 6 hours ago

kurt
Get notified by email when there are changes.
In Review
Feature Request
About 6 hours ago

kurt
Get notified by email when there are changes.