For the complete documentation index, see llms.txt. This page is also available as Markdown.

Integrate Login Script

Tell the Twinr app who is signed in on your Replit app, so notifications reach the right person.

Your Replit app knows who is signed in. The app does not, unless you tell it. This connects the two, so notifications reach the right person and the app can keep someone signed in between visits.

You only need this if you send notifications to specific people.

Ask the agent

With the MCP server connected, ask Replit:

Add Twinr login sync to my app. Use the Twinr MCP tools to get what you need.

What the code does

The agent 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. The agent also gives your sign-in form stable identifiers so the app can fill it in when someone returns.

Test it

  1. Build your app and open it on a device.

  2. Sign in inside the app.

  3. Close the app fully and reopen it. You should still be signed in.

If you are signed out each time, your app is most likely reporting notLoggedIn before it has finished checking.

Last updated