© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
SupabaseS
Supabase•3y ago•
1 reply
DomNeuner

email & password auth with sveltekit

I'm creating a new project using sveltekit. In the past, I've used the Sveltekit Auth Helpers which now recommends using the SSR package instead.

I've followed that part and created the client but clicking through to Implementing authentication with Email and Password redirects me to a page that talks about just using email auth - https://supabase.com/docs/guides/auth/server-side/email-based-auth-with-pkce-flow-for-ssr ? No mention of passwords or handling that from a login form.

Am I missing something in the docs? I can't find anything under SSR that actually talks about using email & password 😅 Do I still setup a code exchange route like before and just handle login with something like this:

async function signInWithEmail() {
  const { data, error } = await supabase.auth.signInWithPassword({
    email: 'example@email.com',
    password: 'example-password'
  })
}
async function signInWithEmail() {
  const { data, error } = await supabase.auth.signInWithPassword({
    email: 'example@email.com',
    password: 'example-password'
  })
}
image.png
Supabase Auth with SvelteKit | Supabase Docs
Convenience helpers for implementing user authentication in SvelteKit.
Supabase Auth with SvelteKit | Supabase Docs
Email Auth with PKCE flow for SSR | Supabase Docs
Learn how to configure email authentication in your server-side rendering (SSR) application to work with the PKCE flow.
Email Auth with PKCE flow for SSR | Supabase Docs
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
Was this page helpful?

Similar Threads

Recent Announcements

Similar Threads

email + password signup in sveltekit?
SupabaseSSupabase / help-and-questions
4y ago
sveltekit-email-password auth example session fails when running vite as non-localhost
SupabaseSSupabase / help-and-questions
4y ago
Sveltekit SSR auth
SupabaseSSupabase / help-and-questions
8mo ago
SvelteKit Auth Helper
SupabaseSSupabase / help-and-questions
4y ago