Skip to content

Use Better Auth impersonation and add user bans - #12

Merged
theNEXlevel merged 1 commit into
mainfrom
feat/better-auth-impersonation-user-bans
Sep 4, 2026
Merged

Use Better Auth impersonation and add user bans#12
theNEXlevel merged 1 commit into
mainfrom
feat/better-auth-impersonation-user-bans

Conversation

@theNEXlevel

Copy link
Copy Markdown
Contributor

Summary

  • Replace custom impersonation endpoints/cookie handling with Better Auth's native admin plugin.
  • Add admin user ban/unban actions with a reason and optional expiration using the native datetime control.
  • Display ban reason and expiration in the users table.
  • Fix session-dependent header hydration and add the required Prisma migration/client import.
  • Add tests and Prisma schema validation to pull-request CI.

Validation

  • pnpm test (50 tests passed)
  • pnpm exec tsc --noEmit
  • pnpm lint
  • pnpm exec prisma validate
  • pnpm build

@theNEXlevel
theNEXlevel merged commit dcbfd11 into main Sep 4, 2026
1 check passed
@theNEXlevel
theNEXlevel deleted the feat/better-auth-impersonation-user-bans branch September 4, 2026 05:22
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