diff --git a/packages/auth-providers-web/src/clerk/clerk.tsx b/packages/auth-providers-web/src/clerk/clerk.tsx index 73b794eca4fa..6be53ca04164 100644 --- a/packages/auth-providers-web/src/clerk/clerk.tsx +++ b/packages/auth-providers-web/src/clerk/clerk.tsx @@ -8,8 +8,7 @@ import { SignOutOptions, } from '@clerk/types' -import type { CurrentUser } from '@redwoodjs/auth' -import { createAuthentication } from '@redwoodjs/auth' +import { CurrentUser, createAuthentication } from '@redwoodjs/auth' type Clerk = ClerkClient | undefined | null @@ -21,12 +20,7 @@ export function createClerkAuth(customProviderHooks?: { }) { const authImplementation = createClerkAuthImplementation() - const { AuthContext, AuthProvider, useAuth } = createAuthentication( - authImplementation, - customProviderHooks - ) - - return { AuthContext, AuthProvider, useAuth } + return createAuthentication(authImplementation, customProviderHooks) } function createClerkAuthImplementation() {