diff --git a/public/config.json b/public/config.json
index a5358af..4a11798 100644
--- a/public/config.json
+++ b/public/config.json
@@ -4,5 +4,6 @@
"collection": "ai.syui.log.post",
"network": "syu.is",
"color": "#EF454A",
- "siteUrl": "https://syui.ai"
+ "siteUrl": "https://syui.ai",
+ "oauth": true
}
diff --git a/src/web/components/header.ts b/src/web/components/header.ts
index f85c2c9..6cb217e 100644
--- a/src/web/components/header.ts
+++ b/src/web/components/header.ts
@@ -1,12 +1,15 @@
import { isLoggedIn, getLoggedInHandle } from '../lib/auth'
-export function renderHeader(currentHandle: string): string {
+export function renderHeader(currentHandle: string, oauth: boolean = true): string {
const loggedIn = isLoggedIn()
const handle = getLoggedInHandle()
- const loginBtn = loggedIn
- ? ``
- : ``
+ let loginBtn = ''
+ if (oauth) {
+ loginBtn = loggedIn
+ ? ``
+ : ``
+ }
return `