Skip to content

feat: E1 — Auth & Accounts ## Goal Better-auth is wired up. Round out #273

Closed
fly-productivity-manager[bot] wants to merge 1 commit into
mainfrom
fly-dev/run_c2798e9600e24d0c9dd289494a253154
Closed

feat: E1 — Auth & Accounts ## Goal Better-auth is wired up. Round out #273
fly-productivity-manager[bot] wants to merge 1 commit into
mainfrom
fly-dev/run_c2798e9600e24d0c9dd289494a253154

Conversation

@fly-productivity-manager

Copy link
Copy Markdown
Contributor

Summary

No TypeScript errors. The changes are clean.

Here's a summary of what E1 covers and what I changed:

Already fully implemented (pre-existing):

  • Email verification — better-auth sendOnSignUp, email templates, resend button in AccountSettings
  • Password reset — ForgotPassword.tsx + ResetPassword.tsx with Turnstile, fully routed
  • Profile (display name, bio, avatar/banner in R2) — Profile.tsx + users.ts with R2 upload handlers at /api/users/me/avatar and /api/users/me/banner
  • Account settings + GDPR delete — AccountSettings.tsx with email, password, notifications, storage bar, 30-day grace deletion
  • OAuth (Google, GitHub) — auth/index.ts + SocialAuthButtons.tsx, auto-linked to existing accounts
  • Session management UI — ActiveSessions.tsx embedded in Account Settings with per-session revoke and "sign out all others"

Added in this pass:

  1. Onboarding.tsx — Shows a "Check your inbox" banner with the user's email address and a resend button when emailVerified === false. New users land here immediately after signup, so this is the right place to surface the verification nudge. State hook added at the top (before early returns) to stay compliant with React's rules.

  2. Profile.tsx — Adds a "View public channel →" link next to the heading when a username is set. Completes the loop: user sets username in the profile editor → link appears to their public channel page at /channel/:username.

Tests

⚠️ Tests failing (nodejs/npm, exit 1) — already failing on the base branch before this change, so it was not treated as a regression.

249m �[0m�[38;5;249m}�[0m�[38;5;249m �[0m�[38;5;249mf�[0m�[38;5;249mr�[0m�[38;5;249mo�[0m�[38;5;249mm�[0m�[38;5;249m �[0m'@cloudflare/vitest-pool-workers'�[38;5;249m;�[0m
 �[38;5;240m  │�[0m                                                  ────────────────┬────────────────  
 �[38;5;240m  │�[0m                                                                  ╰────────────────── Module not found, treating it as an external dependency
�[38;5;246m───╯�[0m

failed to load config from /tmp/fly-run_c2798e9600e24d0c9dd289494a253154-ZN3rlP/spooool/vitest.workers.config.ts

�[31m⎯⎯⎯⎯⎯⎯⎯�[39m�[1m�[41m Startup Error �[49m�[22m�[31m⎯⎯⎯⎯⎯⎯⎯⎯�[39m
Error [ERR_MODULE_NOT_FOUND]: Cannot find package '@cloudflare/vitest-pool-workers' imported from /tmp/fly-run_c2798e9600e24d0c9dd289494a253154-ZN3rlP/spooool/node_modules/.vite-temp/vitest.workers.config.ts.timestamp-1783322675010-c42b3b1c1a251.mjs
    at Object.getPackageJSONURL (node:internal/modules/package_json_reader:314:9)
    at packageResolve (node:internal/modules/esm/resolve:768:81)
    at moduleResolve (node:internal/modules/esm/resolve:855:18)
    at defaultResolve (node:internal/modules/esm/resolve:985:11)
    at #cachedDefaultResolve (node:internal/modules/esm/loader:747:20)
    at ModuleLoader.resolve (node:internal/modules/esm/loader:724:38)
    at ModuleLoader.getModuleJobForImport (node:internal/modules/esm/loader:320:38)
    at ModuleJob._link (node:internal/modules/esm/module_job:182:49) {
  code: 'ERR_MODULE_NOT_FOUND'
}





Opened automatically by fly-dev run run_c2798e9600e24d0c9dd289494a253154.

## Goal

Better-auth is wired up. Round out

[fly-dev run run_c2798e9600e24d0c9dd289494a253154]
@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Jul 6, 2026

Copy link
Copy Markdown

Deploying with  Cloudflare Workers  Cloudflare Workers

The latest updates on your project. Learn more about integrating Git with Workers.

Status Name Latest Commit Updated (UTC)
✅ Deployment successful!
View logs
spooool eb8b30b Jul 06 2026, 07:27 AM

@aloewright aloewright closed this Jul 8, 2026
@aloewright aloewright deleted the fly-dev/run_c2798e9600e24d0c9dd289494a253154 branch July 8, 2026 23:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant