Bug: Sign-in and sign-out are completely broken without JS #477
Labels
No labels
accessibility
api
auth.js
backend
copy
database
defect
dependencies
design
discussion
documentation
duplicate
enhancement
epic
feature
front-end
good first issue
help wanted
invalid
next.js
noscript
on hold
operations
optimization
postgresql
prisma
prototype
question
react
spike
stale
story
tailwind
vulnerability
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
SSE/WebsiteTheSSEquel#477
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Problem
`signIn('google')` and `signOut()` in `AuthButton.tsx` are pure JS event handlers — no anchor, no form action. Without JS, users cannot sign in or sign out at all.
Affected File
`next/components/nav/AuthButton.tsx` (lines 117–127)
Fix
NextAuth ships a built-in HTML sign-in page at `/api/auth/signin` that works with zero JS. Use it as the fallback:
```html
\`\`\`