Integrate Login Script
Tell the Twinr app who is signed in on your Base44 app, so notifications reach the right person.
Your Base44 app knows who is signed in. The app does not, unless you tell it. This connects the two, so notifications reach the right person.
You only need this if you send notifications to specific people.
What works on Base44
Base44 manages authentication for you, and its sign-in screens are not fully customizable. That affects what you can do here:
Reporting who is signed in works. Your app can tell the Twinr app whether someone is signed in, which is what notification targeting needs.
Automatic sign-in on return does not. That needs stable identifiers on your sign-in form, which Base44's managed login screens do not let you set.
In practice this means notifications reach the right person, but someone reopening the app signs in again as they would on the web.
Ask the AI
With the MCP server connected, ask Base44:
Add Twinr login sync to my app. Use the Twinr MCP tools to get what you need.
What the code does
The AI exposes your sign-in status to the app on a known variable:
window.__twinrAuthState // 'loggedIn' | 'notLoggedIn' | 'authError' | 'unknown'The app reads it to know whether someone is signed in, and pairs that with the device token so notifications reach the right person.
Publish and test
Publish your Base44 app, then:
Build your Twinr app and open it on a device.
Sign in inside the app.
Send a notification aimed at that user from Twinr and confirm it arrives.
Last updated