reflex-clerk-api
A Reflex custom component for integrating Clerk authentication into a Reflex application.
See a Demo.
See the Docs
Installation
Any of:
uv add reflex-clerk-api
pip install reflex-clerk-api
poetry add reflex-clerk-api
Usage
import reflex_clerk_api as clerk
def index() -> rx.Component:
return clerk.clerk_provider(
rx.container(
clerk.clerk_loaded(
clerk.signed_in(
clerk.sign_on(
rx.button("Sign out"),
),
),
clerk.signed_out(
rx.button("Sign in"),
),
),
),
publishable_key=os.environ["CLERK_PUBLISHABLE_KEY"],
secret_key=os.environ["CLERK_SECRET_KEY"],
register_user_state=True,
)
Contributing
Feel free to open issues or make PRs.
Usual process for contributing:
- Fork the repo
- Make changes on a feature branch
- Ideally, add tests for any changes (this will mean your changes don't get broken in the future too).
- Submit a PR
I use Taskfile (similar to makefile) to make common tasks easier. If you have that installed, you can run:
task install-- Install dev dependencies and pre-commit.task run-- Run the demo locallytask run-docs-- Run the docs locallytask test-- Run teststask bump-patch/minor/major-- Bump the version (patchfor a bug fix,minorfor an added feature).
TODO:
- How should the
conditionandfallbackprops be defined onProtect? They are supposed to beJavascriptandJSXrespectively, but are juststrfor now... IsJavascriptrx.Script? AndJSXrx.Component?
Metadata
Release files for reflex-clerk-api 1.3.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| reflex_clerk_api-1.3.1.tar.gz | 146.1 kB | Without provenance | Details for reflex_clerk_api-1.3.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| reflex_clerk_api-1.3.1-py3-none-any.whl | Python 3 | none | any | Details for reflex_clerk_api-1.3.1-py3-none-any.whl |
Total release size: 164.9 kB
Release files / reflex_clerk_api-1.3.1.tar.gz
| Download URL | reflex_clerk_api-1.3.1.tar.gz |
|---|---|
| Size | 146.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
0aceb4f58a72c28224245af50a5b575c6f05ea8f11c38a636a3d09106c91e006
|
|
BLAKE2b-256 checksum How to use checksums |
e035e44d9317765ac1bf0d927d1eaeaec5f19aa41ef23536321eabd4f184aabf
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.6.5
|
Release files / reflex_clerk_api-1.3.1-py3-none-any.whl
| Download URL | reflex_clerk_api-1.3.1-py3-none-any.whl |
|---|---|
| Size | 18.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
b6de970c95059b6f196645650e064b213514937e9842480d620ce511e0a47495
|
|
BLAKE2b-256 checksum How to use checksums |
5685eb079032f8de83a4c4153b999c3bdf857d230978d07b6257b9cda7e70669
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.6.5
|
Security for reflex-clerk-api 1.3.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.