@knowcode/doc-builder 1.7.6 → 1.8.0
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.
- package/.claude/settings.local.json +3 -1
- package/CHANGELOG.md +22 -0
- package/assets/css/notion-style.css +9 -1
- package/html/README.html +5 -19
- package/html/css/notion-style.css +9 -1
- package/html/documentation-index.html +5 -19
- package/html/guides/authentication-default-change.html +5 -19
- package/html/guides/authentication-guide.html +189 -262
- package/html/guides/claude-workflow-guide.html +5 -19
- package/html/guides/documentation-standards.html +5 -19
- package/html/guides/phosphor-icons-guide.html +5 -19
- package/html/guides/private-directory-authentication.html +352 -0
- package/html/guides/public-site-deployment.html +11 -24
- package/html/guides/search-engine-verification-guide.html +5 -19
- package/html/guides/seo-guide.html +5 -19
- package/html/guides/seo-optimization-guide.html +5 -19
- package/html/guides/troubleshooting-guide.html +5 -19
- package/html/guides/windows-setup-guide.html +5 -19
- package/html/index.html +5 -19
- package/html/private/cache-control-anti-pattern.html +347 -0
- package/html/private/launch/README.html +289 -0
- package/html/private/launch/auth-cleanup-summary.html +279 -0
- package/html/private/launch/bubble-plugin-specification.html +925 -0
- package/html/private/launch/go-to-market-strategy.html +655 -0
- package/html/private/launch/launch-announcements.html +585 -0
- package/html/private/launch/vercel-deployment-auth-setup.html +329 -0
- package/html/private/next-steps-walkthrough.html +624 -0
- package/html/private/supabase-auth-implementation-completed.html +372 -0
- package/html/private/supabase-auth-implementation-plan.html +529 -0
- package/html/private/supabase-auth-integration-plan.html +657 -0
- package/html/private/supabase-auth-setup-guide.html +484 -0
- package/html/private/test-private-doc.html +220 -0
- package/html/sitemap.xml +113 -29
- package/html/vercel-cli-setup-guide.html +5 -19
- package/html/vercel-first-time-setup-guide.html +5 -19
- package/lib/config.js +24 -0
- package/lib/core-builder.js +40 -6
- package/lib/supabase-auth.js +60 -11
- package/package.json +1 -1
- package/user-management/README.md +81 -0
- package/user-management/add-users.sh +357 -0
- package/user-management/users.txt +15 -0
|
@@ -0,0 +1,372 @@
|
|
|
1
|
+
<!DOCTYPE html>
|
|
2
|
+
<html lang="en">
|
|
3
|
+
<head>
|
|
4
|
+
<meta charset="UTF-8">
|
|
5
|
+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
6
|
+
<meta name="description" content="This document records the successful implementation of Supabase authentication in @knowcode/doc-builder v1.7.5+. All references to the old insecure...">
|
|
7
|
+
<title>Supabase Authentication Implementation - COMPLE...</title>
|
|
8
|
+
|
|
9
|
+
<meta name="author" content="Lindsay Smith">
|
|
10
|
+
<meta name="keywords" content="documentation, markdown, static site generator, vercel, notion-style, supabase, authentication">
|
|
11
|
+
<meta name="robots" content="index, follow">
|
|
12
|
+
<link rel="canonical" href="https://doc-builder-delta.vercel.app/private/supabase-auth-implementation-completed.html">
|
|
13
|
+
|
|
14
|
+
<!-- Open Graph / Facebook -->
|
|
15
|
+
<meta property="og:type" content="article">
|
|
16
|
+
<meta property="og:url" content="https://doc-builder-delta.vercel.app/private/supabase-auth-implementation-completed.html">
|
|
17
|
+
<meta property="og:title" content="Supabase Authentication Implementation - COMPLE...">
|
|
18
|
+
<meta property="og:description" content="This document records the successful implementation of Supabase authentication in @knowcode/doc-builder v1.7.5+. All references to the old insecure...">
|
|
19
|
+
<meta property="og:image" content="https://doc-builder-delta.vercel.app/og-default.png">
|
|
20
|
+
<meta property="og:site_name" content="@knowcode/doc-builder">
|
|
21
|
+
<meta property="og:locale" content="en_US">
|
|
22
|
+
|
|
23
|
+
<!-- Twitter Card -->
|
|
24
|
+
<meta name="twitter:card" content="summary_large_image">
|
|
25
|
+
<meta name="twitter:site" content="@planbbackups">
|
|
26
|
+
<meta name="twitter:creator" content="@planbbackups">
|
|
27
|
+
<meta name="twitter:title" content="Supabase Authentication Implementation - COMPLE...">
|
|
28
|
+
<meta name="twitter:description" content="This document records the successful implementation of Supabase authentication in @knowcode/doc-builder v1.7.5+. All references to the old insecure...">
|
|
29
|
+
<meta name="twitter:image" content="https://doc-builder-delta.vercel.app/og-default.png">
|
|
30
|
+
|
|
31
|
+
<!-- Custom Meta Tags -->
|
|
32
|
+
<meta name="google-site-verification" content="FtzcDTf5BQ9K5EfnGazQkgU2U4FiN3ITzM7gHwqUAqQ">
|
|
33
|
+
<meta name="msvalidate.01" content="B2D8C4C12C530D47AA962B24CAA09630">
|
|
34
|
+
|
|
35
|
+
<!-- Fonts -->
|
|
36
|
+
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap" rel="stylesheet">
|
|
37
|
+
|
|
38
|
+
<!-- Icons -->
|
|
39
|
+
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.1/css/all.min.css">
|
|
40
|
+
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@phosphor-icons/web@2.1.1/src/regular/style.css">
|
|
41
|
+
|
|
42
|
+
<!-- Mermaid -->
|
|
43
|
+
<script src="https://cdn.jsdelivr.net/npm/mermaid@10.6.1/dist/mermaid.min.js"></script>
|
|
44
|
+
|
|
45
|
+
<!-- Styles -->
|
|
46
|
+
<link rel="stylesheet" href="/css/notion-style.css">
|
|
47
|
+
|
|
48
|
+
|
|
49
|
+
|
|
50
|
+
<!-- Favicon -->
|
|
51
|
+
<link rel="icon" href="data:image/svg+xml,<svg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 100 100%22><text y=%22.9em%22 font-size=%2290%22>✨</text></svg>">
|
|
52
|
+
|
|
53
|
+
<script type="application/ld+json">
|
|
54
|
+
{
|
|
55
|
+
"@context": "https://schema.org",
|
|
56
|
+
"@type": "TechArticle",
|
|
57
|
+
"headline": "Supabase Authentication Implementation - COMPLETED ✅",
|
|
58
|
+
"description": "This document records the successful implementation of Supabase authentication in @knowcode/doc-builder v1.7.5+. All references to the old insecure...",
|
|
59
|
+
"author": {
|
|
60
|
+
"@type": "Person",
|
|
61
|
+
"name": "Lindsay Smith"
|
|
62
|
+
},
|
|
63
|
+
"publisher": {
|
|
64
|
+
"@type": "Organization",
|
|
65
|
+
"name": "Knowcode Ltd",
|
|
66
|
+
"url": "https://knowcode.tech"
|
|
67
|
+
},
|
|
68
|
+
"datePublished": "2025-07-26T09:59:23.004Z",
|
|
69
|
+
"dateModified": "2025-07-26T09:59:23.004Z",
|
|
70
|
+
"mainEntityOfPage": {
|
|
71
|
+
"@type": "WebPage",
|
|
72
|
+
"@id": "https://doc-builder-delta.vercel.app/private/supabase-auth-implementation-completed.html"
|
|
73
|
+
},
|
|
74
|
+
"breadcrumb": {
|
|
75
|
+
"@type": "BreadcrumbList",
|
|
76
|
+
"itemListElement": [
|
|
77
|
+
{
|
|
78
|
+
"@type": "ListItem",
|
|
79
|
+
"position": 1,
|
|
80
|
+
"name": "@knowcode/doc-builder",
|
|
81
|
+
"item": "https://doc-builder-delta.vercel.app"
|
|
82
|
+
},
|
|
83
|
+
{
|
|
84
|
+
"@type": "ListItem",
|
|
85
|
+
"position": 2,
|
|
86
|
+
"name": "Private",
|
|
87
|
+
"item": "https://doc-builder-delta.vercel.app/private/"
|
|
88
|
+
},
|
|
89
|
+
{
|
|
90
|
+
"@type": "ListItem",
|
|
91
|
+
"position": 3,
|
|
92
|
+
"name": "Supabase Auth Implementation Completed",
|
|
93
|
+
"item": "https://doc-builder-delta.vercel.app/private/supabase-auth-implementation-completed.html"
|
|
94
|
+
}
|
|
95
|
+
]
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
</script>
|
|
99
|
+
</head>
|
|
100
|
+
<body>
|
|
101
|
+
<!-- Header -->
|
|
102
|
+
<header class="header">
|
|
103
|
+
<div class="header-content">
|
|
104
|
+
<a href="/index.html" class="logo">@knowcode/doc-builder</a>
|
|
105
|
+
|
|
106
|
+
<div class="header-actions">
|
|
107
|
+
<div class="deployment-info">
|
|
108
|
+
<span class="deployment-date" title="Built with doc-builder v1.8.0">Last updated: Jul 26, 2025, 09:59 AM UTC</span>
|
|
109
|
+
</div>
|
|
110
|
+
|
|
111
|
+
|
|
112
|
+
|
|
113
|
+
<button id="theme-toggle" class="theme-toggle" aria-label="Toggle theme">
|
|
114
|
+
<i class="fas fa-moon"></i>
|
|
115
|
+
</button>
|
|
116
|
+
|
|
117
|
+
<button id="menu-toggle" class="menu-toggle" aria-label="Toggle menu">
|
|
118
|
+
<i class="fas fa-bars"></i>
|
|
119
|
+
</button>
|
|
120
|
+
</div>
|
|
121
|
+
</div>
|
|
122
|
+
</header>
|
|
123
|
+
|
|
124
|
+
<!-- Preview Banner -->
|
|
125
|
+
<div id="preview-banner" class="preview-banner">
|
|
126
|
+
<div class="banner-content">
|
|
127
|
+
<i class="fas fa-exclamation-triangle banner-icon"></i>
|
|
128
|
+
<span class="banner-text">This documentation is a preview version - some content may be incomplete</span>
|
|
129
|
+
<button id="dismiss-banner" class="banner-dismiss" aria-label="Dismiss banner">
|
|
130
|
+
<i class="fas fa-times"></i>
|
|
131
|
+
</button>
|
|
132
|
+
</div>
|
|
133
|
+
</div>
|
|
134
|
+
|
|
135
|
+
<!-- Breadcrumbs -->
|
|
136
|
+
<nav class="breadcrumbs" id="breadcrumbs">
|
|
137
|
+
<!-- Breadcrumbs will be generated by JavaScript -->
|
|
138
|
+
</nav>
|
|
139
|
+
|
|
140
|
+
<!-- Main Content -->
|
|
141
|
+
<div class="main-wrapper">
|
|
142
|
+
<!-- Sidebar -->
|
|
143
|
+
<aside class="sidebar">
|
|
144
|
+
<div class="sidebar-header">
|
|
145
|
+
<div class="filter-box">
|
|
146
|
+
<input type="text" placeholder="Filter items..." class="filter-input" id="nav-filter">
|
|
147
|
+
<i class="fas fa-search filter-icon"></i>
|
|
148
|
+
</div>
|
|
149
|
+
</div>
|
|
150
|
+
<nav class="navigation">
|
|
151
|
+
|
|
152
|
+
<div class="nav-section" data-level="0">
|
|
153
|
+
<a class="nav-title" href="/README.html" >
|
|
154
|
+
<i class="fas fa-home"></i> Documentation
|
|
155
|
+
</a>
|
|
156
|
+
<div class="nav-content" >
|
|
157
|
+
<a href="/README.html" class="nav-item" data-tooltip="@knowcode/doc-builder."><i class="fas fa-file-alt"></i> Overview</a>
|
|
158
|
+
<a href="/documentation-index.html" class="nav-item" data-tooltip="This directory contains additional documentation for the @knowcode/doc-builder project, organized by topic and purpose."><i class="fas fa-file-alt"></i> Documentation Index</a>
|
|
159
|
+
<a href="/vercel-cli-setup-guide.html" class="nav-item" data-tooltip="This guide provides comprehensive instructions for installing the Vercel CLI across different operating systems."><i class="fas fa-file-alt"></i> Vercel Cli Setup Guide</a>
|
|
160
|
+
<a href="/vercel-first-time-setup-guide.html" class="nav-item" data-tooltip="This guide walks you through the Vercel deployment process when using ."><i class="fas fa-file-alt"></i> Vercel First Time Setup Guide</a></div></div>
|
|
161
|
+
<div class="nav-section" data-level="1">
|
|
162
|
+
<a class="nav-title collapsible" href="#" data-target="nav-guides-1" >
|
|
163
|
+
<i class="fas fa-chevron-right collapse-icon"></i><i class="fas fa-folder"></i> Guides
|
|
164
|
+
</a>
|
|
165
|
+
<div class="nav-content collapsed" id="nav-guides-1">
|
|
166
|
+
<a href="/guides/authentication-default-change.html" class="nav-item" data-tooltip="Starting from version 1.7.4, @knowcode/doc-builder now defaults to no authentication for all documentation sites."><i class="fas fa-file-alt"></i> Authentication Default Change</a>
|
|
167
|
+
<a href="/guides/authentication-guide.html" class="nav-item" data-tooltip="@knowcode/doc-builder supports enterprise-grade authentication through Supabase - a secure, scalable authentication platform."><i class="fas fa-file-alt"></i> Authentication Guide</a>
|
|
168
|
+
<a href="/guides/claude-workflow-guide.html" class="nav-item" data-tooltip="This guide demonstrates an efficient workflow for using Claude Code with a refined CLAUDE.md file to create high-quality documentation and deploy it..."><i class="fas fa-file-alt"></i> Claude Workflow Guide</a>
|
|
169
|
+
<a href="/guides/documentation-standards.html" class="nav-item" data-tooltip="This document defines the documentation standards and conventions for the @knowcode/doc-builder project."><i class="fas fa-file-alt"></i> Documentation Standards</a>
|
|
170
|
+
<a href="/guides/phosphor-icons-guide.html" class="nav-item" data-tooltip="@knowcode/doc-builder automatically converts Unicode emojis in your markdown files to beautiful Phosphor icons in the generated HTML."><i class="fas fa-file-alt"></i> Phosphor Icons Guide</a>
|
|
171
|
+
<a href="/guides/private-directory-authentication.html" class="nav-item" data-tooltip="The @knowcode/doc-builder now includes automatic authentication for documents placed in a directory."><i class="fas fa-file-alt"></i> Private Directory Authentication</a>
|
|
172
|
+
<a href="/guides/public-site-deployment.html" class="nav-item" data-tooltip="The @knowcode/doc-builder now supports deploying public documentation sites without authentication."><i class="fas fa-file-alt"></i> Public Site Deployment</a>
|
|
173
|
+
<a href="/guides/search-engine-verification-guide.html" class="nav-item" data-tooltip="Search engine verification provides access to powerful webmaster tools:."><i class="fas fa-file-alt"></i> Search Engine Verification Guide</a>
|
|
174
|
+
<a href="/guides/seo-guide.html" class="nav-item" data-tooltip="@knowcode/doc-builder includes comprehensive SEO (Search Engine Optimization) features to help your documentation rank better in search results and..."><i class="fas fa-file-alt"></i> Seo Guide</a>
|
|
175
|
+
<a href="/guides/seo-optimization-guide.html" class="nav-item" data-tooltip="@knowcode/doc-builder includes comprehensive SEO (Search Engine Optimization) features that automatically optimize your documentation for search..."><i class="fas fa-file-alt"></i> Seo Optimization Guide</a>
|
|
176
|
+
<a href="/guides/troubleshooting-guide.html" class="nav-item" data-tooltip="This guide helps you resolve common issues when using @knowcode/doc-builder."><i class="fas fa-file-alt"></i> Troubleshooting Guide</a>
|
|
177
|
+
<a href="/guides/windows-setup-guide.html" class="nav-item" data-tooltip="This guide helps Windows users set up the complete AI-powered documentation workflow using Claude Code, @knowcode/doc-builder, and Vercel."><i class="fas fa-file-alt"></i> Windows Setup Guide</a></div></div>
|
|
178
|
+
</nav>
|
|
179
|
+
<div class="resize-handle"></div>
|
|
180
|
+
</aside>
|
|
181
|
+
|
|
182
|
+
<!-- Content Area -->
|
|
183
|
+
<main class="content">
|
|
184
|
+
<div class="content-inner">
|
|
185
|
+
<h1>Supabase Authentication Implementation - COMPLETED <i class="ph ph-check-circle" aria-label="checked"></i></h1>
|
|
186
|
+
<h2>Overview</h2>
|
|
187
|
+
<p>This document records the successful implementation of Supabase authentication in @knowcode/doc-builder v1.7.5+. All references to the old insecure authentication system have been removed.</p>
|
|
188
|
+
<h2>What Was Achieved</h2>
|
|
189
|
+
<h3>1. Complete Removal of Old System</h3>
|
|
190
|
+
<ul>
|
|
191
|
+
<li><i class="ph ph-check-circle" aria-label="checked"></i> Removed all client-side credential checking</li>
|
|
192
|
+
<li><i class="ph ph-check-circle" aria-label="checked"></i> Deleted old auth.js files</li>
|
|
193
|
+
<li><i class="ph ph-check-circle" aria-label="checked"></i> Cleaned up configuration options</li>
|
|
194
|
+
<li><i class="ph ph-check-circle" aria-label="checked"></i> Updated all documentation</li>
|
|
195
|
+
</ul>
|
|
196
|
+
<h3>2. Supabase Integration</h3>
|
|
197
|
+
<ul>
|
|
198
|
+
<li><i class="ph ph-check-circle" aria-label="checked"></i> JWT-based authentication</li>
|
|
199
|
+
<li><i class="ph ph-check-circle" aria-label="checked"></i> Row Level Security (RLS) </li>
|
|
200
|
+
<li><i class="ph ph-check-circle" aria-label="checked"></i> Multi-user support</li>
|
|
201
|
+
<li><i class="ph ph-check-circle" aria-label="checked"></i> Fine-grained access control</li>
|
|
202
|
+
<li><i class="ph ph-check-circle" aria-label="checked"></i> Session management</li>
|
|
203
|
+
</ul>
|
|
204
|
+
<h3>3. Default Behavior Change</h3>
|
|
205
|
+
<ul>
|
|
206
|
+
<li><i class="ph ph-check-circle" aria-label="checked"></i> Authentication now <strong>disabled by default</strong></li>
|
|
207
|
+
<li><i class="ph ph-check-circle" aria-label="checked"></i> Public documentation works out of the box</li>
|
|
208
|
+
<li><i class="ph ph-check-circle" aria-label="checked"></i> Authentication must be explicitly enabled</li>
|
|
209
|
+
</ul>
|
|
210
|
+
<h2>Current Architecture</h2>
|
|
211
|
+
<div class="mermaid-wrapper">
|
|
212
|
+
<div class="mermaid">graph TD
|
|
213
|
+
A[User Request] --> B{Auth Enabled?}
|
|
214
|
+
B -->|No| C[Show Content]
|
|
215
|
+
B -->|Yes| D[Check Supabase JWT]
|
|
216
|
+
D --> E{Valid Token?}
|
|
217
|
+
E -->|No| F[Login Page]
|
|
218
|
+
E -->|Yes| G{Has Access?}
|
|
219
|
+
G -->|Yes| H[Show Content]
|
|
220
|
+
G -->|No| I[Access Denied]
|
|
221
|
+
|
|
222
|
+
style C fill:#90EE90
|
|
223
|
+
style H fill:#90EE90
|
|
224
|
+
style I fill:#FFB6C1</div>
|
|
225
|
+
</div>
|
|
226
|
+
<h2>Configuration</h2>
|
|
227
|
+
<h3>Public Site (Default)</h3>
|
|
228
|
+
<pre><code class="language-javascript">// No configuration needed - public by default!
|
|
229
|
+
</code></pre>
|
|
230
|
+
<h3>Protected Site</h3>
|
|
231
|
+
<pre><code class="language-javascript">module.exports = {
|
|
232
|
+
features: {
|
|
233
|
+
authentication: 'supabase' // Must explicitly enable
|
|
234
|
+
},
|
|
235
|
+
auth: {
|
|
236
|
+
supabaseUrl: 'https://xxx.supabase.co',
|
|
237
|
+
supabaseAnonKey: 'your-anon-key',
|
|
238
|
+
siteId: 'your-site-id'
|
|
239
|
+
}
|
|
240
|
+
};
|
|
241
|
+
</code></pre>
|
|
242
|
+
<h2>Security Improvements</h2>
|
|
243
|
+
<table>
|
|
244
|
+
<thead>
|
|
245
|
+
<tr>
|
|
246
|
+
<th>Old System</th>
|
|
247
|
+
<th>New System</th>
|
|
248
|
+
</tr>
|
|
249
|
+
</thead>
|
|
250
|
+
<tbody><tr>
|
|
251
|
+
<td>Credentials in JavaScript</td>
|
|
252
|
+
<td>JWT tokens</td>
|
|
253
|
+
</tr>
|
|
254
|
+
<tr>
|
|
255
|
+
<td>Client-side validation</td>
|
|
256
|
+
<td>Server-side validation</td>
|
|
257
|
+
</tr>
|
|
258
|
+
<tr>
|
|
259
|
+
<td>Single user</td>
|
|
260
|
+
<td>Unlimited users</td>
|
|
261
|
+
</tr>
|
|
262
|
+
<tr>
|
|
263
|
+
<td>Password in config</td>
|
|
264
|
+
<td>Supabase Auth</td>
|
|
265
|
+
</tr>
|
|
266
|
+
<tr>
|
|
267
|
+
<td>No access control</td>
|
|
268
|
+
<td>Row Level Security</td>
|
|
269
|
+
</tr>
|
|
270
|
+
</tbody></table>
|
|
271
|
+
<h2>CLI Commands</h2>
|
|
272
|
+
<h3>Build Commands</h3>
|
|
273
|
+
<pre><code class="language-bash"># Public site (default)
|
|
274
|
+
npx @knowcode/doc-builder build
|
|
275
|
+
|
|
276
|
+
# Force public (override config)
|
|
277
|
+
npx @knowcode/doc-builder build --no-auth
|
|
278
|
+
|
|
279
|
+
# With authentication (from config)
|
|
280
|
+
npx @knowcode/doc-builder build
|
|
281
|
+
</code></pre>
|
|
282
|
+
<h3>Deploy Commands</h3>
|
|
283
|
+
<pre><code class="language-bash"># Deploy public site
|
|
284
|
+
npx @knowcode/doc-builder deploy --no-auth
|
|
285
|
+
|
|
286
|
+
# Deploy with auth (from config)
|
|
287
|
+
npx @knowcode/doc-builder deploy
|
|
288
|
+
</code></pre>
|
|
289
|
+
<h2>Migration Guide</h2>
|
|
290
|
+
<p>For users upgrading from versions with the old auth:</p>
|
|
291
|
+
<ol>
|
|
292
|
+
<li><p><strong>Remove old configuration</strong>:</p>
|
|
293
|
+
<pre><code class="language-javascript">// DELETE THIS:
|
|
294
|
+
auth: {
|
|
295
|
+
username: 'admin',
|
|
296
|
+
password: 'password'
|
|
297
|
+
}
|
|
298
|
+
</code></pre>
|
|
299
|
+
</li>
|
|
300
|
+
<li><p><strong>For public sites</strong>: No action needed - works by default</p>
|
|
301
|
+
</li>
|
|
302
|
+
<li><p><strong>For protected sites</strong>: Follow the <a href="./authentication-guide.md">Supabase Authentication Guide</a></p>
|
|
303
|
+
</li>
|
|
304
|
+
</ol>
|
|
305
|
+
<h2>Files Changed</h2>
|
|
306
|
+
<h3>Removed</h3>
|
|
307
|
+
<ul>
|
|
308
|
+
<li><code>/assets/js/auth.js</code> - Old client auth script</li>
|
|
309
|
+
<li>All references to username/password auth</li>
|
|
310
|
+
</ul>
|
|
311
|
+
<h3>Updated</h3>
|
|
312
|
+
<ul>
|
|
313
|
+
<li><code>/lib/config.js</code> - Removed old auth options</li>
|
|
314
|
+
<li><code>/lib/core-builder.js</code> - Supabase integration only</li>
|
|
315
|
+
<li><code>/cli.js</code> - Updated help text</li>
|
|
316
|
+
<li>All documentation files</li>
|
|
317
|
+
</ul>
|
|
318
|
+
<h3>Added</h3>
|
|
319
|
+
<ul>
|
|
320
|
+
<li><code>/lib/supabase-auth.js</code> - New auth module</li>
|
|
321
|
+
<li>Supabase login/logout pages</li>
|
|
322
|
+
<li>JWT-based auth checking</li>
|
|
323
|
+
</ul>
|
|
324
|
+
<h2>Breaking Changes</h2>
|
|
325
|
+
<ul>
|
|
326
|
+
<li><strong>v1.7.5+</strong>: Authentication disabled by default</li>
|
|
327
|
+
<li>Old username/password config no longer works</li>
|
|
328
|
+
<li>Must explicitly enable Supabase auth</li>
|
|
329
|
+
<li>No automatic migration of credentials</li>
|
|
330
|
+
</ul>
|
|
331
|
+
<h2>Best Practices</h2>
|
|
332
|
+
<ol>
|
|
333
|
+
<li><strong>Default to public</strong> - Most docs should be public</li>
|
|
334
|
+
<li><strong>Use environment variables</strong> for Supabase credentials</li>
|
|
335
|
+
<li><strong>Regular access audits</strong> - Review user permissions</li>
|
|
336
|
+
<li><strong>Monitor usage</strong> - Check Supabase dashboard</li>
|
|
337
|
+
<li><strong>Keep updated</strong> - Use latest @knowcode/doc-builder</li>
|
|
338
|
+
</ol>
|
|
339
|
+
<h2>Support</h2>
|
|
340
|
+
<ul>
|
|
341
|
+
<li><strong>Documentation</strong>: <a href="./authentication-guide.md">Authentication Guide</a></li>
|
|
342
|
+
<li><strong>Issues</strong>: <a href="https://github.com/wapdat/doc-builder/issues">GitHub Issues</a></li>
|
|
343
|
+
<li><strong>Supabase</strong>: <a href="https://supabase.com/docs">Supabase Documentation</a></li>
|
|
344
|
+
</ul>
|
|
345
|
+
<h2>Conclusion</h2>
|
|
346
|
+
<p>The implementation is complete. @knowcode/doc-builder now offers:</p>
|
|
347
|
+
<ul>
|
|
348
|
+
<li>Secure authentication when needed</li>
|
|
349
|
+
<li>Public documentation by default</li>
|
|
350
|
+
<li>Enterprise-grade security with Supabase</li>
|
|
351
|
+
<li>Clear migration path from old system</li>
|
|
352
|
+
</ul>
|
|
353
|
+
<p>No traces of the old authentication system remain in the codebase.</p>
|
|
354
|
+
|
|
355
|
+
</div>
|
|
356
|
+
</main>
|
|
357
|
+
</div>
|
|
358
|
+
|
|
359
|
+
<!-- Scripts -->
|
|
360
|
+
<script>
|
|
361
|
+
// Pass configuration to frontend
|
|
362
|
+
window.docBuilderConfig = {
|
|
363
|
+
features: {
|
|
364
|
+
showPdfDownload: true,
|
|
365
|
+
menuDefaultOpen: false
|
|
366
|
+
}
|
|
367
|
+
};
|
|
368
|
+
</script>
|
|
369
|
+
<script src="/js/main.js"></script>
|
|
370
|
+
|
|
371
|
+
</body>
|
|
372
|
+
</html>
|