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

3.0.39 • 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

90

Version

3.0.39

License

MIT

Unpacked Size

47.3 kB

Total Files

12

Last publish

Collaborators

  • eelcow