Skip to main content

Reflex custom component wrapping @clerk/clerk-react and integrating the clerk-backend-api

Project description

clerk-api

A Reflex custom component for integrating Clerk authentication into a Reflex application.

See a demo of it in action here.

Documentation will soon be available here

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,
    )

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

reflex_clerk_api-0.1.3.tar.gz (9.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

reflex_clerk_api-0.1.3-py3-none-any.whl (9.9 kB view details)

Uploaded Python 3

File details

Details for the file reflex_clerk_api-0.1.3.tar.gz.

File metadata

  • Download URL: reflex_clerk_api-0.1.3.tar.gz
  • Upload date:
  • Size: 9.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.10.16

File hashes

Hashes for reflex_clerk_api-0.1.3.tar.gz
Algorithm Hash digest
SHA256 75a2acf3cc8881100af49a735ace5ca536893d2f98ebd1ebe772695c92545563
MD5 8cd22e1a1cca648ffeca7652e34e3345
BLAKE2b-256 7dd0ec780e2bba9b8d8066c9371224818abaa86efa946ef9baafe877fb4a75e4

See more details on using hashes here.

File details

Details for the file reflex_clerk_api-0.1.3-py3-none-any.whl.

File metadata

File hashes

Hashes for reflex_clerk_api-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 b271fb5f269c58b944287fada1c0e4348b5b8e731249e06d25fdf460adf40fa8
MD5 a020feda6d7db22d41ab17883337073f
BLAKE2b-256 794d20cb22b4ca98e1355022e072155086f595f32a5006048c98e92818aab8fb

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page