Technology

Framework vs Building Auth from Scratch

Compare weeks of custom auth work against the ready-made authentication module in Framework.

19 de junho de 20263 min de leitura

The auth tax

Every new SaaS rebuilds the same flows: sign up, sign in, password reset, OAuth callback, JWT refresh, and guarded API routes. Teams typically spend 2–4 weeks before writing product code.

What Framework includes

The authentication module ships:

  • Email/password and Google OAuth
  • JWT access + refresh tokens
  • Auth guards in NestJS and Hasura permissions aligned with user identity
  • Pre-wired routes in app and service

Build vs fork

TaskFrom scratchFramework
Auth flows1–2 weeksDay 1
OAuth setup2–3 daysEnv swap
Token refresh2–3 daysIncluded
Hasura permissions1 weekIncluded

When to customize

Fork the boilerplate and extend apps/service auth modules for your domain rules. You rarely need to replace the foundation — only add business-specific guards or SSO providers.

Conclusion

Auth is solved infrastructure. Framework lets you skip the tax and ship your differentiation faster.