clerk
A Reflex custom component clerk.
Installation
pip install reflex-clerk
Usage
import reflex as rx
from reflex_clerk import clerk_provider, sign_in_button, install_signin_page
publishable_key = "your_clerk_publishable_key"
def index() -> rx.Component:
return clerk_provider(
rx.vstack(
sign_in_button(),
align="center",
spacing="7",
),
publishable_key=publishable_key,
)
app = rx.App()
app.add_page(index)
install_signin_page(app)
In this example:
- We import the necessary components from Reflex and the
reflex_clerklibrary. - We define the
publishable_keyfor our Clerk instance. - We create a function index that returns a Reflex component.
- Inside the index function, we use the
clerk_providercomponent from reflex_clerk. This component sets up the Clerk context for the rest of the components within it. - Within the
clerk_provider, we create a vertical stack (rx.vstack) that contains the sign_in.sign_in_button() component from reflex_clerk. This component renders a sign-in button for Clerk. - We pass the
publishable_keyto theclerk_providercomponent.
With this setup, you'll have a page that displays a sign-in button powered by Clerk. You can then add more Clerk components, such as user profile information, sign-out buttons, and more, within the clerk_provider.
Further documentation can be found in the reference docs
License
Apache-2.0
Contributing
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
Acknowledgments
Metadata
Release files for reflex-clerk 1.0.3
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-1.0.3.tar.gz | 19.1 kB | Without provenance | Details for reflex_clerk-1.0.3.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| reflex_clerk-1.0.3-py3-none-any.whl | Python 3 | none | any | Details for reflex_clerk-1.0.3-py3-none-any.whl |
Total release size: 43.5 kB
Release files / reflex_clerk-1.0.3.tar.gz
| Download URL | reflex_clerk-1.0.3.tar.gz |
|---|---|
| Size | 19.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
1db113d36f2819769c114f5732b27abeb441216ddb85dcdb3c85ca93c89b6449
|
|
BLAKE2b-256 checksum How to use checksums |
3c25b3e3cf535b634e3e910d05bce32642a0050316fff412df8835818852356d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.9.6
|
Release files / reflex_clerk-1.0.3-py3-none-any.whl
| Download URL | reflex_clerk-1.0.3-py3-none-any.whl |
|---|---|
| Size | 24.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
fbbc606a1d1eda024b069976fb4bef69b6cdbb2bbf34baec48c5aec290e2caa5
|
|
BLAKE2b-256 checksum How to use checksums |
1237ad626bd26d7a7e694d9d8f9d2ecfc330899715ba5eeebbac133559ade182
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.9.6
|
Security for reflex-clerk 1.0.3
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.