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.1.tar.gz (8.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.1-py3-none-any.whl (8.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: reflex_clerk_api-0.1.1.tar.gz
  • Upload date:
  • Size: 8.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.1.tar.gz
Algorithm Hash digest
SHA256 acd0d21bba3a82e258b88da1c297a7723e541d5cb3f33b2e3ea87825598ea030
MD5 3655ee5b53f4f4f91d3681d35c8c4a9c
BLAKE2b-256 5f0283a5c99a019f81f432e6b149058f05163efcbe0870c93110e509321ce07d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for reflex_clerk_api-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 5d4d561dcefc19f724d26be6c4a470130a5c196e41ce9e6d8e09aad62a79391d
MD5 15ab9d6b0dc159e6d74a5f77ed76868d
BLAKE2b-256 30b5df9599ac24ea8a10dbcd4c2f400fb7df69a1e9a4d5931d28ece4549d8a2d

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