@conversokit/auth 0.1.0 → 0.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/README.md +46 -0
  2. package/package.json +13 -1
package/README.md ADDED
@@ -0,0 +1,46 @@
1
+ # @conversokit/auth
2
+
3
+ Auth providers (API key, JWT/JWKS, Google/GitHub/Microsoft/Auth0 OAuth, Clerk, Supabase) and Express middleware for ConversoKit ChatGPT Apps.
4
+
5
+ Part of [ConversoKit](https://github.com/Xyborg/ConversoKit) — a boilerplate for building ChatGPT Apps (Apps SDK / MCP) in <30 minutes.
6
+
7
+ ## Install
8
+
9
+ ```bash
10
+ pnpm add @conversokit/auth express
11
+ # or
12
+ npm install @conversokit/auth express
13
+ ```
14
+
15
+ ## Usage
16
+
17
+ ```ts
18
+ import express from 'express';
19
+ import {
20
+ createAuthMiddleware,
21
+ apiKeyProvider,
22
+ bearerJwtProvider,
23
+ } from '@conversokit/auth';
24
+
25
+ const app = express();
26
+
27
+ app.use(
28
+ createAuthMiddleware({
29
+ providers: [
30
+ apiKeyProvider({ keys: process.env.API_KEYS!.split(',') }),
31
+ bearerJwtProvider({ jwksUri: process.env.JWKS_URI! }),
32
+ ],
33
+ optional: false,
34
+ }),
35
+ );
36
+ ```
37
+
38
+ Providers chain and short-circuit on first success. The middleware sets `req.conversokitAuth` for downstream handlers. OAuth flow providers (`GoogleOAuthProvider`, `GitHubOAuthProvider`, etc.) drive `/auth/:provider/login|callback`.
39
+
40
+ ## Documentation
41
+
42
+ Full docs and runnable examples live in the [main repo](https://github.com/Xyborg/ConversoKit#readme).
43
+
44
+ ## License
45
+
46
+ Apache-2.0 © Martín Aberastegue
package/package.json CHANGED
@@ -1,8 +1,20 @@
1
1
  {
2
2
  "name": "@conversokit/auth",
3
- "version": "0.1.0",
3
+ "version": "0.1.1",
4
4
  "description": "Auth providers (API key, JWT/JWKS, Google/GitHub/Microsoft/Auth0 OAuth, Clerk, Supabase) and Express middleware for ConversoKit ChatGPT Apps.",
5
5
  "license": "Apache-2.0",
6
+ "keywords": [
7
+ "oauth",
8
+ "jwt",
9
+ "jwks",
10
+ "express",
11
+ "middleware",
12
+ "conversokit",
13
+ "chatgpt-apps"
14
+ ],
15
+ "engines": {
16
+ "node": ">=18.0.0"
17
+ },
6
18
  "repository": {
7
19
  "type": "git",
8
20
  "url": "git+https://github.com/Xyborg/ConversoKit.git",