jazz-browser-auth-clerk v0.9.23
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,
);10 months ago
11 months ago
10 months ago
11 months ago
10 months ago
10 months ago
11 months ago
11 months ago
10 months ago
10 months ago
12 months ago
10 months ago
10 months ago
10 months ago
10 months ago
10 months ago
9 months ago
11 months ago
11 months ago
11 months ago
11 months ago
12 months ago
12 months ago
10 months ago
12 months ago
11 months ago
11 months ago
11 months ago
10 months ago
10 months ago
10 months ago
12 months ago
12 months ago
10 months ago
12 months ago
12 months ago
12 months ago
12 months ago
12 months ago
12 months ago
9 months ago
1 year ago
1 year ago
1 year ago
9 months ago
10 months ago
9 months ago
9 months ago
12 months ago
12 months ago
1 year ago
12 months ago
12 months ago
10 months ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago