supabase-auth
Python Client Library for Supabase Auth
Decision gist · record as of 2026-08-14
Yes. The package is actively maintained, has no known vulnerabilities, installs with minimal friction, and provides a complete, well-documented authentication solution for Supabase users. Choose it if you're building on Supabase and need Python authentication; it's the official client library for that platform.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Requires Python 3.9 or later.
- You must provide a valid Supabase Auth URL and API key to initialize the client.
- Low install friction with three lightweight runtime dependencies (httpx, pydantic, pyjwt).
License · maintenance · safety
MIT (permissive) — MIT license (permissive) means you can use, modify, and distribute this package freely in commercial and private projects with minimal restrictions.
last release 2026-06-04 (71 days) · last repo commit 2026-08-12 · 2,557 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 33,939,429 downloads/mo, #764 on PyPI
Alternatives
Verify before relying
pip install supabase_auth
from supabase_auth import SyncGoTrueClient
headers = {"apiKey": "your-api-key"}
client = SyncGoTrueClient(url="https://your-auth-url.com", headers=headers)
user = client.sign_up(email="user@example.com", password="secure_password")- Whether the async client is production-ready and what concurrency patterns are recommended
- Performance characteristics when handling high volumes of concurrent authentication requests
- Specific OAuth providers supported beyond the generic 'provider' parameter shown in examples
What it is and what it does
supabase_auth is a Python port of the Supabase JavaScript authentication client, providing a unified interface to Supabase Auth services. It wraps httpx for HTTP requests, pydantic for data validation, and pyjwt for token handling, offering both synchronous and asynchronous APIs so you can integrate authentication into blocking or async Python applications.
The library covers the full authentication lifecycle: user sign-up and sign-in (via email/password, OAuth, magic links, phone OTP, or anonymous mode), session management with automatic token refresh, multi-factor authentication enrollment and verification, and user profile updates. Errors are raised as exceptions rather than returned as tuples, following Python conventions, and datetime strings are automatically parsed into Python datetime objects.
Use it for
- Building a FastAPI or async web application that needs user authentication with Supabase backend
- Implementing multi-factor authentication flows in a Python backend service
- Integrating OAuth sign-in (e.g., Google, GitHub) into a Django or Flask application
- Managing user sessions and token refresh in a long-running daemon or background worker
- Handling phone-based or email OTP authentication for mobile app backends
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes.
The package is actively maintained, has no known vulnerabilities, installs with minimal friction, and provides a complete, well-documented authentication solution for Supabase users. Choose it if you're building on Supabase and need Python authentication; it's the official client library for that platform.
Install
supabase-auth on PyPI
Before you install
Low install friction with three lightweight runtime dependencies (httpx, pydantic, pyjwt). Active maintenance with a recent release and ongoing commits; the repository has 2557 stars and is not archived.
Requires Python 3.9 or later. You must provide a valid Supabase Auth URL and API key to initialize the client.
License in practice
MIT license (permissive) means you can use, modify, and distribute this package freely in commercial and private projects with minimal restrictions.
Quickstart
pip install supabase_auth
from supabase_auth import SyncGoTrueClient
headers = {"apiKey": "your-api-key"}
client = SyncGoTrueClient(url="https://your-auth-url.com", headers=headers)
user = client.sign_up(email="user@example.com", password="secure_password")
Verify before relying
- Whether the async client is production-ready and what concurrency patterns are recommended
- Performance characteristics when handling high volumes of concurrent authentication requests
- Specific OAuth providers supported beyond the generic 'provider' parameter shown in examples
Package facts
| License | MIT permissive |
| Python support | Supports the current Python release >=3.9 |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | 3 packageshttpxpydanticpyjwt |
| Maintenance | Actively maintained 71 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 33,939,429 / month, #764 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | License :: OSI Approved :: MIT LicenseOperating System :: OS IndependentProgramming Language :: Python :: 3 |
Evidence: supabase_auth-2.31.0-py3-none-any.whl
Tags
Let your AI agent find packages like this
Example. Real query, live index.
You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.
wish › “oauth and mfa support”
- supabase-authA Python client library for Supabase Auth that handles user…
- django-allauth-2faAdds two-factor authentication to django-allauth versions older than…
- django-otp-webauthnAdds WebAuthn Passkey support to Django OTP, enabling passwordless…
Give your agent the search over MCP, or paste the wish link into any chat.
More WWW/HTTP packages
urllib3 is an HTTP client library that provides thread-safe connection pooling, SSL/TLS verification, multipart file uploads, request retries, compression support, and proxy handling for Python applications.
Requests is a Python HTTP library that simplifies sending HTTP/1.1 requests with automatic handling of headers, authentication, cookies, and response parsing.
h11 is a pure-Python HTTP/1.1 protocol implementation that handles parsing and serializing HTTP messages without any built-in I/O, letting you integrate it with any network layer you choose.
HTTPX is a fully featured HTTP client library for Python that provides both sync and async APIs, with support for HTTP/1.1 and HTTP/2, plus an integrated command-line client.
Install it if you are building new projects or modernizing existing ones that rely on HTTP.
A minimal low-level HTTP client library that sends HTTP requests with thread-safe and task-safe connection pooling, supporting HTTP/1.1, HTTP/2, proxies, and both sync and async interfaces.
aiohttp is an async HTTP client and server framework built on asyncio, supporting both WebSockets and middleware-based routing for building concurrent web applications.
Install it if you need async HTTP client or server capabilities in asyncio-based applications.
See also gotrue · stytch · supertokens-python · supabase-functions · supabase · storage3 · supafunc · realtime · descope · gpsoauth