Authentication

Overview

Learn how to authenticate users in your extension.

TurboStarter uses Better Auth to handle authentication. It's a secure, production-ready authentication solution that integrates seamlessly with many frameworks and provides enterprise-grade security out of the box.

Why Better Auth?

One of the core principles of TurboStarter is to do things as simple as possible, and to make everything as performant as possible.

Better Auth provides an excellent developer experience with minimal configuration required, while maintaining enterprise-grade security standards. Its framework-agnostic approach and focus on performance makes it the perfect choice for TurboStarter.

Better Auth

You can read more about Better Auth in the official documentation.

IMPORTANT: Shared authentication

To keep things simple and secure, the extension shares the same authentication session with your web app.

This is a common approach used by popular services like Notion and Google Workspace. The benefits include:

  • Users only need to sign in once through the web app
  • The extension automatically inherits the authenticated session
  • Sign out actions are synchronized across platforms
  • Reduced security surface area and complexity

Before setting up extension authentication, make sure to first configure authentication for your web app and then head back to the extension code.

The following sections cover everything you need to know about authentication in your extension:

Last updated on

On this page

No Headings
Ship your startup everywhere. In minutes.