feat: integrate @better-auth/infra for dashboard and sentinel monitoring

This commit is contained in:
Jose Selesan
2026-04-21 15:03:29 -03:00
parent 07408dbbbe
commit 62b7a75093
5 changed files with 356 additions and 30 deletions

View File

@@ -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 {