feat: integrate @better-auth/infra for dashboard and sentinel monitoring
This commit is contained in:
@@ -12,6 +12,7 @@
|
||||
"preview": "vite preview"
|
||||
},
|
||||
"dependencies": {
|
||||
"@better-auth/infra": "^0.2.4",
|
||||
"@fontsource-variable/geist": "^5.2.8",
|
||||
"@hookform/resolvers": "^5.2.2",
|
||||
"@radix-ui/react-label": "^2.1.8",
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
import { createAuthClient } from 'better-auth/react';
|
||||
import * as api from './api';
|
||||
import { sentinelClient } from "@better-auth/infra/client";
|
||||
|
||||
const apiBaseUrl = api.apiBaseUrl;
|
||||
|
||||
@@ -8,6 +9,7 @@ export const authClient = createAuthClient({
|
||||
fetchOptions: {
|
||||
credentials: 'include',
|
||||
},
|
||||
plugins: [sentinelClient()],
|
||||
});
|
||||
|
||||
export class ApiClientError extends Error {
|
||||
|
||||
Reference in New Issue
Block a user