@saas-ui/clerk
TypeScript icon, indicating that this package has built-in type declarations

4.0.0 • Public • Published

@saas-ui/clerk

Clerk Authentication Service for Saas UI.

Authentication strategies supported:

  • Magic link login / sign up
  • Password login / sign up
  • Social login

Installation

$ yarn add @saas-ui/clerk

#or

$ npm i @saas-ui/clerk  --save

Usage

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>
  )
}

License

MIT - Appulse Software

Package Sidebar

Install

npm i @saas-ui/clerk

Homepage

saas-ui.dev/

Weekly Downloads

198

Version

4.0.0

License

MIT

Unpacked Size

40.5 kB

Total Files

11

Last publish

Collaborators

  • eelcow