0.11.5 • Published 8 months ago
jazz-auth-clerk v0.11.5
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
8 months ago
0.11.4
8 months ago
0.11.3
8 months ago
0.11.2
8 months ago
0.11.0
8 months ago
0.10.15
8 months ago
0.10.14
8 months ago
0.10.13
8 months ago
0.10.12
8 months ago
0.10.9
9 months ago
0.10.8
9 months ago
0.10.7
9 months ago
0.10.6
9 months ago
0.10.5
9 months ago
0.10.4
9 months ago
0.10.3
9 months ago
0.10.2
9 months ago
0.10.1
9 months ago
0.10.0
9 months ago