2025-11-24 01:00:50 +01:00
|
|
|
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';
|
2025-11-24 01:00:50 +01:00
|
|
|
|
|
|
|
|
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
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
]
|
2025-11-24 01:00:50 +01:00
|
|
|
});
|