Registry / security / reflex-clerk-api

reflex-clerk-api

JSON →
library1.3.1pypypi✓ verified 82d ago

A Reflex custom component that wraps @clerk/clerk-react and integrates the Clerk backend API for authentication in Reflex apps. Current version 1.3.1, requires Python >=3.11, release cadence irregular.

pip install reflex-clerk-api
INSTALL
IMPORT
SIG · REFLEX-CLERK-API
R
reflex-clerk-api
securitypythonv1.3.1
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

ClerkState
from reflex_clerk_api import ClerkState
from reflex_clerk_api import ClerkProvider
ClerkUser
from reflex_clerk_api import ClerkUser
SignInButton
from reflex_clerk_api import SignInButton

Minimal Reflex app using ClerkProvider for authentication.

import reflex as rx from reflex_clerk_api import ClerkProvider, SignedIn, SignedOut, useUser class State(rx.State): pass def index() -> rx.Component: return rx.center( ClerkProvider( publishable_key=os.environ.get('CLERK_PUBLISHABLE_KEY', ''), SignedIn( rx.heading("You are signed in!"), rx.text(f"User: {useUser().user.id if useUser().user else '?'}") ), SignedOut( rx.heading("Please sign in") ) ) ) app = rx.App(state=State) app.add_page(index, route="/")
Debug
Known issues
breakingIn v1.3.0, the module was renamed from `reflex_clerk` to `reflex_clerk_api`. Update all imports accordingly.
fix
Change `from reflex_clerk import ...` to `from reflex_clerk_api import ...`.
affects: <1.3.0
breakingThe package now requires Python >=3.11. It will not install on older Python versions.
fix
Upgrade Python to 3.11 or later.
affects: >=1.3.0
gotchaThe `publishable_key` prop is required for ClerkProvider. Forgetting to set it will cause runtime errors.
fix
Always pass `publishable_key` environment variable or hardcoded key.
affects: all
gotcha`useUser()` must be called inside a child of ClerkProvider. Calling it outside will throw an error.
fix
Ensure `useUser()` is used within a component rendered inside ClerkProvider.
affects: all
Upgrade
Version history
1.3.1latest on PyPI · released Apr 30, 2026
Audit
Dependencies
reflexrequiredRuntime dependency for Reflex app integration
httpxrequiredUsed for Clerk backend API calls
Agent activity
22 hits · last 30 days
node
20
Bingbot
1
Resources

No resource links recorded.

reflex-clerk-api — pip install reflex-clerk-api · libregistry