Setting up the database

Setting up the database

Build a SaaS with Svelte 5 (beta offer)

Buy nowLearn more

Introduction

  • Overview
  • Download Source Code

Setup

  • Setting up the database
  • Setting up BetterAuth config
  • Adding toasts
  • Adding E-mail with Resend
  • Segmenting the layouts

Authentication

  • Adding a hook for BetterAuth
  • Add sign-up with passwords
  • Add sign-in with passwords
  • Add forgot password page
  • Add form for resetting password
  • Add OAuth sign-ins
  • Access user data on server and client
  • Add user's avatar
  • Adding a sign-out option

Pricing

  • How Stripe Pricing works
  • Setup Pricing in Stripe
  • Storing plan data
  • Adding a pricing page

Subscriptions

  • How subscriptions work
  • Setup the BetterAuth Stripe plugin
  • Accessing subscription data server & client side
  • Handling Stripe webhooks
  • Adding Stripe's customer portal

BONUS: Usage-based fees

  • Coming Soon 🚧

BONUS: Organizations & Teams

  • Coming Soon 🚧

BONUS: Per-seat pricing

  • Coming Soon 🚧