Skip to content

Conversation

@tannerlinsley
Copy link
Member

Create a standalone auth module at ~/auth that encapsulates all
authentication logic, making it independent of the rest of the
application through IoC interfaces.

New auth module structure:

  • types.ts: Core types and IoC interfaces (IUserRepository, etc.)
  • session.server.ts: Cookie-based session management with HMAC-SHA256
  • auth.server.ts: Main AuthService for user authentication
  • capabilities.server.ts: CapabilitiesService with helper utilities
  • oauth.server.ts: OAuthService and OAuth provider utilities
  • guards.server.ts: Auth guards factory and decorators
  • repositories.server.ts: Drizzle-based repository implementations
  • context.server.ts: Dependency injection/service composition root
  • index.server.ts: Server-side public API exports
  • index.ts: Client-side public API exports
  • client.ts: Client-side auth utilities

The existing utils files now delegate to the new auth module for
backward compatibility. Auth routes updated to use the new module
directly.

Create a standalone auth module at ~/auth that encapsulates all
authentication logic, making it independent of the rest of the
application through IoC interfaces.

New auth module structure:
- types.ts: Core types and IoC interfaces (IUserRepository, etc.)
- session.server.ts: Cookie-based session management with HMAC-SHA256
- auth.server.ts: Main AuthService for user authentication
- capabilities.server.ts: CapabilitiesService with helper utilities
- oauth.server.ts: OAuthService and OAuth provider utilities
- guards.server.ts: Auth guards factory and decorators
- repositories.server.ts: Drizzle-based repository implementations
- context.server.ts: Dependency injection/service composition root
- index.server.ts: Server-side public API exports
- index.ts: Client-side public API exports
- client.ts: Client-side auth utilities

The existing utils files now delegate to the new auth module for
backward compatibility. Auth routes updated to use the new module
directly.
@netlify
Copy link

netlify bot commented Dec 18, 2025

Deploy Preview for tanstack ready!

Name Link
🔨 Latest commit 0131051
🔍 Latest deploy log https://app.netlify.com/projects/tanstack/deploys/6943a014a236b600086c7e0e
😎 Deploy Preview https://deploy-preview-584--tanstack.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
Lighthouse
Lighthouse
1 paths audited
Performance: 21 (no change from production)
Accessibility: 83 (🟢 up 1 from production)
Best Practices: 83 (no change from production)
SEO: 98 (no change from production)
PWA: 70 (no change from production)
View the detailed breakdown and full score reports

To edit notification comments on pull requests, go to your Netlify project configuration.

autofix-ci bot and others added 11 commits December 18, 2025 05:19
* book icon update

* fix book icon

* update command icon

* replace react-icons/bs

* migrate to close icons to lucide-react x

* discord, close, and github icons plus some others

* update icons to lucide-react for improved consistency

* replace FaBolt with Zap icon in multiple components for consistency

* replace FontAwesome icons with Lucide icons for consistency

* add CheckCircleIcon component and replace FaCheckCircle usage for consistency

* remove unused FontAwesome icons for improved consistency

* replace FaCogs with CogsIcon component for consistency across multiple files

* replace FaComment with MessageSquare icon for consistency across multiple components

* replace FontAwesome icons with Lucide icons for consistency across multiple components

* replace FaExternalLinkAlt and FaEdit with ExternalLink and SquarePen icons for consistency across multiple components

* replace FontAwesome icons with Lucide icons for consistency across multiple components

* replace icons with Lucide icons for consistency across multiple components

* replace icons with Lucide icons for consistency across multiple components

* auth logs

* update icons

* add BrandXIcon and BSkyIcon components; update Navbar to use new icons

* replace Material Design icons with Lucide icons for consistency across multiple components

* replace react-icons with Lucide icons

* replace react-icons with Lucide icons

* ci: apply automated fixes

* fix broken icon

* enable lazy loading and async decoding for images in Markdown component

---------

Co-authored-by: Tanner Linsley <[email protected]>
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
Create a standalone auth module at ~/auth that encapsulates all
authentication logic, making it independent of the rest of the
application through IoC interfaces.

New auth module structure:
- types.ts: Core types and IoC interfaces (IUserRepository, etc.)
- session.server.ts: Cookie-based session management with HMAC-SHA256
- auth.server.ts: Main AuthService for user authentication
- capabilities.server.ts: CapabilitiesService with helper utilities
- oauth.server.ts: OAuthService and OAuth provider utilities
- guards.server.ts: Auth guards factory and decorators
- repositories.server.ts: Drizzle-based repository implementations
- context.server.ts: Dependency injection/service composition root
- index.server.ts: Server-side public API exports
- index.ts: Client-side public API exports
- client.ts: Client-side auth utilities

The existing utils files now delegate to the new auth module for
backward compatibility. Auth routes updated to use the new module
directly.
….com/TanStack/tanstack.com into claude/refactor-auth-isolation-1ODhp

# Conflicts:
#	src/auth/oauth.server.ts
@tannerlinsley tannerlinsley merged commit 6011aef into main Dec 18, 2025
6 of 7 checks passed
@tannerlinsley tannerlinsley deleted the claude/refactor-auth-isolation-1ODhp branch December 18, 2025 06:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants