Home / Companies / Clerk / Blog / March 2025

March 2025 Summaries

5 posts from Clerk

Filter
Month: Year:
Post Summaries Back to Blog
The integration of Clerk and Supabase streamlines the implementation of collaborative, multitenant features in applications, positioning developers to tap into the burgeoning collaborative software industry projected to reach nearly $53 billion by 2032. Clerk enhances user management by simplifying authentication, team structures, and granular permissions through its Organizations feature, which allows users to create and manage teams using pre-built UI components like the <OrganizationSwitcher />. This integration allows Supabase to identify user requests by parsing JWT claims, enabling multi-tenancy with minimal configuration. It facilitates the creation of Row-Level Security (RLS) policies that restrict data access to specific users or organizations by checking both user and organization IDs. Developers can further simplify policy creation by using a dedicated function to manage these IDs, ensuring accurate access control. The integration is exemplified through Quillmate, a Next.js application, demonstrating how Clerk and Supabase can be utilized to manage personal and organizational data effectively, with the ability to invite collaborators and manage articles based on ownership.
Mar 31, 2025 2,176 words in the original blog post.
Supabase is an innovative backend platform that diverges from traditional full-stack architecture by allowing direct client access to data without a custom backend, while still maintaining security through PostgreSQL's Row Level Security (RLS). This approach is particularly effective with Next.js applications, where developers utilize Supabase's API to request data directly from the database using authorization tokens. Supabase can integrate with Clerk to handle authentication, using JSON Web Tokens (JWTs) and the JSON Web Key Set (JWKS) endpoint for verification, ensuring secure data transactions. This integration enables scalable application development by allowing JWTs to dictate access roles, enhancing security without the necessity of a separate backend, and is exemplified in projects like Quillmate. The article suggests that understanding and leveraging these modern integrations can streamline development processes, enhance security, and challenge conventional architectural practices.
Mar 31, 2025 1,835 words in the original blog post.
The article compares Supabase Auth and Clerk, highlighting Clerk as a more feature-rich alternative that is easy to implement. While Supabase Auth provides a straightforward method for adding authentication to applications using a pre-configured auth schema in Postgres, Clerk offers additional benefits such as beautifully designed UI components and a suite of B2B tools for multi-tenant applications. Both systems utilize JSON Web Tokens (JWTs) for authentication, but Clerk offers a dedicated JSON Web Key Set (JWKS) endpoint for integration with Supabase, ensuring compatibility. Clerk also supports diverse authentication strategies, including social sign-ons and passkeys, and provides components for user management, making it a versatile option for developers seeking enhanced functionality. Furthermore, Clerk's integration with Supabase allows developers to quickly configure authentication and extend user management features, making it an attractive alternative for those seeking to enhance their application's authentication experience.
Mar 31, 2025 1,520 words in the original blog post.
On March 21, 2025, a critical security vulnerability, CVE-2025-29927, was disclosed by Next.js, allowing potential bypassing of middleware-based authentication and authorization protections in certain applications. While applications not using Next.js or hosted on platforms like Vercel or Netlify are unaffected, those utilizing Clerk's middleware for route protection without directly reading user data could be vulnerable unless they have upgraded to @clerk/[email protected] or higher, released in June 2024. The issue is resolved in specific versions of Next.js, and for those unable to upgrade, preventing external requests with the x-middleware-subrequest header is advised. Clerk acknowledged a mistake in initially announcing that all applications using Clerk were unaffected and apologized, committing to improve their zero-day vulnerability procedures and establishing advance notice protocols with framework authors like Next.js. They have also communicated directly with potentially affected applications' administrators, offering assistance via email and support channels.
Mar 23, 2025 387 words in the original blog post.
This tutorial guides readers through building a blog application from scratch using a stack of modern web technologies, including Next.js, Clerk, tRPC, Prisma, and others. The tutorial begins with setting up a Next.js application and integrating Clerk for user management and authentication, followed by deploying the app on Vercel and setting up a Neon serverless Postgres database. Prisma ORM is used to connect and manipulate the database, while Tanstack Query and tRPC are introduced to enhance data fetching, caching, and type safety. The tutorial also covers creating protected procedures using Clerk’s authentication context, ensuring certain routes are accessible only to authenticated users. Throughout, the tutorial emphasizes type safety and best practices, such as using tRPC for type-safe API endpoints and leveraging Clerk's authentication for secure user interactions. The blog app is designed to allow users to create and read posts, with the potential for adding more features like updating and deleting posts, commenting, and integrating richer user data.
Mar 14, 2025 6,297 words in the original blog post.