# Building With AI? Let Forte Handle Your App's Authentication

> Source: <https://forteplatforms.com/blog/ai-built-apps-managed-auth>
> Published: 2026-11-21 00:00:00+00:00

**Recommendation:** Keep authorization checks server-side on every endpoint and test both sides with two synthetic workspaces; note Forte Websites bypass the session gateway, so add access controls to server-rendered sensitive routes.
More in the playbook "Securing agents and AI tools": <https://wpnews.pro/playbooks/agent-security>

An AI coding agent can build a sign-in screen and get you into a test account in one session. The harder question comes later, when a customer says someone else is using their account. Can they recover it safely? Does changing the password shut out the other session? Can your team see what changed?

For vibe coders and AI-first startup teams, we think the safest default is to build your sign-in experience on Forte and let Forte operate the authentication behind it. A small team can review the code it writes to connect to Forte and spend its security time on decisions only it can make, such as which workspace a signed-in user can access.

## Recovery is part of sign-in security

Imagine a customer signs in once and stays signed in for weeks. The app needs a way to expire and revoke that session. Now imagine the customer requests a password reset. A reset link grants control of the account, so it needs to expire, work only once, and reach the right person. Account recovery also needs a way to end sessions that no longer belong to the customer. These protections apply from the first real account, even if the startup has never had to handle a recovery incident. [OWASP's password recovery guidance](https://cheatsheetseries.owasp.org/cheatsheets/Forgot_Password_Cheat_Sheet.html)

If you offer passwords on Forte, you can configure recovery with single-use reset links. For an account that already has a verified contact, Forte sends recovery messages only to a verified contact. Completing a reset revokes existing sessions, and Forte records the event in the user's audit trail. That gives your team a way to answer the customer's original question and investigate what happened. [Password reset settings](https://forteplatforms.com/docs/core-concepts/users/passwords#reset-a-password) · [User administration](https://forteplatforms.com/docs/core-concepts/users/administration)

Your app chooses which sign-in methods to offer. Forte operates the supported Google OAuth, password, and one-time-passcode flows and manages sessions. For email or SMS sign-in, passcodes are hashed in storage, expire after ten minutes, and allow up to five attempts. You can also require MFA and offer an authenticator app or a passkey as a second factor. Plan for approved compliance registration and the relevant sending setup if you're launching live email or SMS authentication. [Forte authentication guide](https://forteplatforms.com/docs/core-concepts/users/authentication) · [MFA guide](https://forteplatforms.com/docs/core-concepts/users/mfa)

Those are fewer security-sensitive paths for your team to implement and maintain. The benefit holds when the next agent adds a page or rewrites the frontend. The page still calls the same authentication system, and the same session checks apply when it calls a protected Service.

## Keep the workspace decision in your application

Forte's gateway validates the user's session before forwarding a request to a protected Service. Keep exclusions limited to routes that are intentionally public. Put protected API logic on the Service. Forte Websites are served outside this gateway, so server-rendered Website routes that handle sensitive data need their own access controls. [Service authentication settings](https://forteplatforms.com/docs/core-concepts/services/overview#authentication-path-exclusions) · [Forte Websites](https://forteplatforms.com/docs/core-concepts/websites)

Suppose a signed-in user requests an invoice. Forte establishes who made the request. Your Service checks that the user belongs to the invoice's workspace and has permission to see it. Ask your agent to test both sides of that rule with two synthetic workspaces. A billing admin should be able to open their own invoice. A signed-in user from the other workspace should be denied. Keep the check on the server for every endpoint that reads or changes an invoice. [OWASP's authorization guidance](https://cheatsheetseries.owasp.org/cheatsheets/Authorization_Cheat_Sheet.html)

Before launch, run a supported recovery flow and confirm that protected paths reject signed-out callers and that workspace checks reject the wrong signed-in callers. Then run those checks whenever the agent adds a sensitive route. Forte gives your team a managed identity boundary, and those tests establish that the product applies the right permissions on top of it.
