Clerk Authentication Service for Saas UI.
Authentication strategies supported:
- Magic link login / sign up
- Password login / sign up
- Social login
$ yarn add @saas-ui/clerk
#or
$ npm i @saas-ui/clerk --save
Add ClerkAuthProvider
to your app root and add authService
to SaasProvider
.
import { ClerkAuthProvider } from '@saas-ui/clerk'
import { SaasProvider, AuthProvider } from '@saas-ui/react'
const App = ({ children }) => {
return (
<ClerkAuthProvider frontendApi={process.env.FRONTEND_API}>
{({ clerk, authService }) => (
<SaasProvider>
<AuthProvider {...authService}>{children}</AuthProvider>
</SaasProvider>
)}
</ClerkAuthProvider>
)
}
MIT - Appulse Software