Skip to main content

Auth Overview

Mastra lets you choose how you handle authentication, so you can secure access to your application's endpoints using the identity system that fits your stack.

You can start with simple shared secret JWT authentication and switch to providers like Supabase, Firebase Auth, Auth0, Clerk, or WorkOS when you need more advanced identity features.

Available providers

On this page