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