Back to Browse

Better-Auth: Headless Authentication for Your TanStack Start App

31.5K views
Apr 21, 2025
16:07

Is better-auth the better way to add authentication to your TanStack Start or NextJS application? Let's find out! Better-auth: https://www.better-auth.com/ Code: https://github.com/jherr/tanstack-better-auth 👉 ProNextJS Course: https://pronextjs.dev 👉 Don't forget to subscribe to this channel for more updates: https://bit.ly/2E7drfJ 👉 Discord server signup: https://discord.gg/ddMZFtTDa5 👉 VS Code theme and font? Night Wolf [black] and BitstromWera Nerd Font Mono 👉 Terminal Theme and font? oh-my-posh with custom prompt and BitstromWera Nerd Font Mono 00:00 Introduction 00:26 Better-Auth Setup 03:35 Auth Callback Setup 04:25 React Integration 05:22 Signing In 06:16 Signing Out 07:10 Authorized Routes 08:15 Server Function Auth 08:33 Authorization Middleware 10:40 Forcing Navigation 11:43 Authenticated API Routes 12:46 Authenticated tRPC Routes 15:39 Outroduction

Download

1 formats

Video Formats

360pmp435.4 MB

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

Better-Auth: Headless Authentication for Your TanStack Start App | NatokHD