© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
SupabaseS
Supabase•4y ago•
7 replies
BoogersLLC

Add Properties to Auth.User

Hello, for context I'm currently using the svelte-kit auth helper 0.7.1

I know that Supabase suggests creating a public.profiles table to manage additional user data.

However, one thing I'm confused on.

The
LayoutServerLoad
LayoutServerLoad
only pulls back the
auth.user
auth.user
as far as I understand. -- I want to grab additional properties like
theme
theme
so that I can have that user's theme during SSR.

LayoutServerLoad
LayoutServerLoad
blocks rendering the corresponding svelte layout/page until it completes. Wouldn't hitting the supabase API to grab profiles add to this time to finish?

i.e. I'm looking for a way to grab custom fields/columns from the user without having to make a second trip to the server.

More context, this is essentially what I'm trying to achieve:

export const load: LayoutServerLoad = async ({ locals }) => {
        // locals.session.user <-- Already has user's data.
    return {
        session: locals.session,
        theme: 'night' // <-- Get user's theme from locals.session.user
    };
};
export const load: LayoutServerLoad = async ({ locals }) => {
        // locals.session.user <-- Already has user's data.
    return {
        session: locals.session,
        theme: 'night' // <-- Get user's theme from locals.session.user
    };
};
Supabase banner
SupabaseJoin
Supabase gives you the tools, documentation, and community that makes managing databases, authentication, and backend infrastructure a lot less overwhelming.
45,816Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

Add phone auth to existing email auth user
SupabaseSSupabase / help-and-questions
4y ago
Cannot read properties of undefined (reading 'user') sveltekit auth-helpers
SupabaseSSupabase / help-and-questions
4y ago
how to add Display Name on the User Table under Auth
SupabaseSSupabase / help-and-questions
3y ago
Invite user (auth)
SupabaseSSupabase / help-and-questions
4y ago