0.11.5 • Published 1 year 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
1 year ago
0.11.4
1 year ago
0.11.3
1 year ago
0.11.2
1 year ago
0.11.0
1 year ago
0.10.15
1 year ago
0.10.14
1 year ago
0.10.13
1 year ago
0.10.12
1 year ago
0.10.9
1 year ago
0.10.8
1 year ago
0.10.7
1 year ago
0.10.6
1 year ago
0.10.5
1 year ago
0.10.4
1 year ago
0.10.3
1 year ago
0.10.2
1 year ago
0.10.1
1 year ago
0.10.0
1 year ago