MENU

Fun & Interesting

Better-Auth: Headless Authentication for Your TanStack Start App

Jack Herrington 7,368 1 day ago
Video Not Working? Fix It Now

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

Comment