Clerk starter module
Shared library
Centralizes Clerk clients, session checks, and typed identity helpers across the app.
- Files
- 4
- Lines
- 291
- Languages
- TypeScript
Included files
This page lists paths and purposes, not source contents.
FilePurposeLanguageLines
src/lib/app-adapter.ts
The seam between this starter and your application's own storage.
TypeScript
158 lines
src/lib/clerk-server.ts
Provides the server-side Clerk client used by every protected route and handler.
TypeScript
19 lines
src/lib/env.ts
Reads and validates every environment setting this starter uses.
TypeScript
74 lines
src/lib/types.ts
Defines the app-owned storage operations that authentication handlers need.
TypeScript
40 lines