© 2026 Hedgehog Software, LLC
Twitter
GitHub
Discord
System
Light
Dark
More
Communities
Docs
About
Terms
Privacy
Search
Star
Feedback
Setup for Free
Define different pg schema for auth tables - Better Auth
BA
Better Auth
•
8mo ago
jins
Define different pg schema for auth tables
Is it safe to be creating the auth schema
(account
, session
, user
, verification
) on the
public
public
schema
?
Auth
.js creates a separate
next_auth
next_auth
schema for these tables which seems like a more secure method
?
Supabase has a separate
auth
auth
schema
.
See here
:
https://authjs.dev/getting-started/adapters/supabase?framework=Next.js
Auth.js | Supabase
Authentication for the Web
Recent Announcements
Similar Threads
Making Auth with 2 tables with different auth flows
BA
Better Auth / help
11mo ago
Move better auth tables from "public" to "auth" postgres schema
BA
Better Auth / help
14mo ago
Custom Tables | SQL Schema
BA
Better Auth / help
12mo ago
Different server for auth and frontend
BA
Better Auth / help
10mo ago