Back to Browse

SvelteKit + Better Auth Authentication Step by Step

2.2K views
Dec 22, 2025
38:12

In this video, I walk through adding authentication to a real SvelteKit app using Better Auth and Drizzle, covering magic links, email/password, Google OAuth, and protected routes step by step. Code: https://github.com/thitemple/svelte-kit-better-auth-demo 00:00 Introduction to Authentication with ATE and Better Auth 03:31 Configuring Better Auth with Drizzle 08:47 Implementing Magic Link Authentication 15:45 Setting Up Email and Password Authentication 20:56 Implementing Validation for Sign-In 24:14 Email Verification Process 29:10 Password Reset Functionality 34:19 Integrating Google Sign-In 38:00 Conclusion and Summary Say hi / more • ✉️ Newsletter & notes: https://ttemp.link/me • 🦋 Bsky: https://ttemp.link/bsky • ❎ X (Twitter): https://ttemp.link/x

Download

1 formats

Video Formats

360pmp467.7 MB

Right-click 'Download' and select 'Save Link As' if the file opens in a new tab.

SvelteKit + Better Auth Authentication Step by Step | NatokHD