-
-
Notifications
You must be signed in to change notification settings - Fork 140
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: update clerk oauth provider types
- Loading branch information
1 parent
ff13af6
commit 02d5606
Showing
14 changed files
with
1,096 additions
and
947 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
'@saas-ui/clerk': patch | ||
--- | ||
|
||
Updated clerk provider types |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
14 changes: 8 additions & 6 deletions
14
examples/clerk-auth/pages/login.tsx → ...ples/clerk-auth/app/(auth)/login/page.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
import Provider from './provider' | ||
|
||
export default function RootLayout({ | ||
children, | ||
}: { | ||
children: React.ReactNode | ||
}) { | ||
return ( | ||
<html> | ||
<body> | ||
<Provider>{children}</Provider> | ||
</body> | ||
</html> | ||
) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
'use client' | ||
|
||
import { SaasProvider } from '@saas-ui/react' | ||
import { ClerkAuthProvider } from '@saas-ui/clerk/src' | ||
import { AuthProvider } from '@saas-ui/auth' | ||
|
||
export default function Provider({ children }: { children: React.ReactNode }) { | ||
return ( | ||
<ClerkAuthProvider | ||
publishableKey={process.env.NEXT_PUBLIC_CLERK_PUBLISHABLE_KEY} | ||
> | ||
{({ authService }) => ( | ||
<SaasProvider> | ||
<AuthProvider {...authService}>{children}</AuthProvider> | ||
</SaasProvider> | ||
)} | ||
</ClerkAuthProvider> | ||
) | ||
} |
Oops, something went wrong.