diff --git a/src/auth/client.ts b/src/auth/client.ts index 130a43a..5a27f8f 100644 --- a/src/auth/client.ts +++ b/src/auth/client.ts @@ -42,8 +42,8 @@ function toAbsoluteUrl(maybeRelative: string): string { function buildClient(directusUrl: string) { return createDirectus(toAbsoluteUrl(directusUrl)) - .with(authentication('cookie', { credentials: 'include', autoRefresh: true })) - .with(rest({ credentials: 'include' })); + .with(rest({ credentials: 'include' })) + .with(authentication('session', { credentials: 'include' })); } let _client: DirectusClient | null = null;