Skip to content

Commit

Permalink
Clerk: Simplify web implementation (#6713)
Browse files Browse the repository at this point in the history
  • Loading branch information
Tobbe committed Oct 14, 2022
1 parent 60e075f commit 443506d
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions packages/auth-providers-web/src/clerk/clerk.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -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() {
Expand Down

0 comments on commit 443506d

Please sign in to comment.