Files
classroomio/apps/dashboard/src/lib/utils/services/auth/client.ts
T

18 lines
414 B
TypeScript
Raw Normal View History

import { createAuthClient } from 'better-auth/svelte';
import { env } from '$env/dynamic/public';
2026-03-09 11:18:22 +01:00
import { ssoClient } from '@better-auth/sso/client';
export const authClient = createAuthClient({
baseURL: env.PUBLIC_SERVER_URL,
fetchOptions: {
credentials: 'include' // Include cookies in requests
2026-03-09 11:18:22 +01:00
},
plugins: [
ssoClient({
domainVerification: {
enabled: true
}
})
]
});