Air + Clerk for user management.
Project description
airclerk
Air + Clerk for user management.
Environment Variables
AirClerk is driven by the following environment variables:
| Variable | Type | Required | Default | Description |
|---|---|---|---|---|
CLERK_PUBLISHABLE_KEY |
str | Yes | - | Clerk publishable API key for client-side authentication |
CLERK_SECRET_KEY |
str | Yes | - | Clerk secret API key for server-side operations |
CLERK_JS_SRC |
str | No | https://cdn.jsdelivr.net/npm/@clerk/clerk-js@5/dist/clerk.browser.js |
CDN URL for the Clerk JavaScript library |
CLERK_LOGIN_ROUTE |
str | No | /login |
URL path for the login page |
CLERK_LOGOUT_ROUTE |
str | No | /logout |
URL path for the logout endpoint |
CLERK_LOGIN_REDIRECT_ROUTE |
str | No | / |
Where the user is redirected to after login |
CLERK_LOGOUT_REDIRECT_ROUTE |
str | No | / |
Where the user is redirected to after logout |
You must set the required environment variables for AirClerk to function properly. Optional variables can be customized as needed.
Usage
To use AirClerk in your Air application, include the middleware and router as shown below:
import air
import airclerk
app = air.Air()
app.add_middleware(air.SessionMiddleware, secret_key="change-me")
app.include_router(airclerk.router)
When you run a development OAuth-powered Air application with AirClerk, don't use localhost as your domain, as Clerk does not support it. Use 127.0.0.1 instead.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file airclerk-0.2.0.tar.gz.
File metadata
- Download URL: airclerk-0.2.0.tar.gz
- Upload date:
- Size: 4.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.9.11 {"installer":{"name":"uv","version":"0.9.11"},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2eed48c1d3f1e35502c9b956781af6105329d7c7503eb24f5571db5b44af3420
|
|
| MD5 |
b5cbb43c21df00192d389a445cc18610
|
|
| BLAKE2b-256 |
fe40497ff4da5cfa9d3046de003d3c4e96c41d9b4cbd1c5472aac2c62fe12929
|
File details
Details for the file airclerk-0.2.0-py3-none-any.whl.
File metadata
- Download URL: airclerk-0.2.0-py3-none-any.whl
- Upload date:
- Size: 4.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.9.11 {"installer":{"name":"uv","version":"0.9.11"},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2916f27d80a504513df9e7a647ca809cfa59c43a7834116bd730e5d84d2cbbb8
|
|
| MD5 |
8c0fe392a6fb2bcedcbb0426df181094
|
|
| BLAKE2b-256 |
33edbf5e0bfeac168ff161901a517b56e0a132e36d1fc3e987a88eaa901a0564
|