Skip to content

ag-tech-group/criticalbit-auth-web

Repository files navigation

AG Technology Group

criticalbit-auth-web

CI License: Apache 2.0

Auth frontend for criticalbit.gg. Handles user authentication flows for the entire platform.

Live: auth.criticalbit.gg

Features

  • Email/password login and registration
  • Google OAuth and Steam OpenID sign-in (and linking either provider to an existing account)
  • Password reset via email (Resend)
  • User profile with avatar (from OAuth providers)
  • Account deletion with confirmation
  • ToS acceptance gate for OAuth users
  • Granular consent: analytics and session-replay opt-ins collected at registration and editable on the profile page; re-prompts when the consent options change (the profile page is the platform-wide place users manage these)
  • App-shell skeleton on first paint (no blank flash before hydration)
  • Error tracking (Sentry) and product analytics (PostHog), with PostHog capture and session replay gated on the user's recorded consent
  • Dark mode (default) and light mode with shared cookie
  • CriticalBit theme (Geist + Geist Pixel Line fonts, ice blue/emerald palette)

Pages

Route Description
/login Sign in with email/password, Google, or Steam
/register Create account with ToS acceptance and consent opt-ins
/profile User profile, consent settings, account deletion
/forgot-password Request password reset email
/reset-password Set new password from email link
/accept-terms ToS gate for OAuth users
/callback/google Google OAuth callback (dev)
/callback/steam Steam OpenID callback (dev)
/callback/google-complete Post-OAuth redirect handler (prod)
/callback/steam-complete Post-OAuth redirect handler (prod)

Development

# Install dependencies
pnpm install

# Start dev server (requires auth API on :8000)
pnpm dev

# Build
pnpm build

# Test
pnpm test:run

# Lint
pnpm lint

The Vite dev server proxies /api/* to localhost:8000 for same-origin cookie handling.

License

Apache 2.0 — see LICENSE.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages