0.11.5 • Published 4 months ago

jazz-auth-clerk v0.11.5

Weekly downloads
-
License
MIT
Repository
-
Last release
4 months ago

jazz-browser-auth-clerk

This package provides a Clerk-based authentication strategy for Jazz.

Looking for a React integration? Check out jazz-react-auth-clerk.

Usage

BrowserClerkAuth is a class that provides a JazzAuth object. Provide a Clerk instance to BrowserClerkAuth, and it will return the appropriate JazzAuth object. Once authenticated, authentication will persist across page reloads, even if the device is offline.

From the example app:

import { BrowserClerkAuth } from "jazz-browser-auth-clerk";

// ...

const auth = new BrowserClerkAuth(
  {
    onError: (error) => {
      void clerk.signOut();
      setState((state) => ({
        ...state,
        errors: [...state.errors, error.toString()],
      }));
    },
  },
  clerk,
);
0.11.5

4 months ago

0.11.4

4 months ago

0.11.3

4 months ago

0.11.2

4 months ago

0.11.0

4 months ago

0.10.15

4 months ago

0.10.14

4 months ago

0.10.13

4 months ago

0.10.12

4 months ago

0.10.9

5 months ago

0.10.8

5 months ago

0.10.7

5 months ago

0.10.6

5 months ago

0.10.5

5 months ago

0.10.4

5 months ago

0.10.3

5 months ago

0.10.2

5 months ago

0.10.1

5 months ago

0.10.0

5 months ago