From d92f670217af3fb8aed0fbdfd12cd5b4c0954611 Mon Sep 17 00:00:00 2001 From: rijkvanzanten Date: Wed, 25 Nov 2020 18:45:10 -0500 Subject: [PATCH] Default auto refresh to false --- packages/sdk-js/src/index.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/sdk-js/src/index.ts b/packages/sdk-js/src/index.ts index e1414c436c..207f512218 100644 --- a/packages/sdk-js/src/index.ts +++ b/packages/sdk-js/src/index.ts @@ -33,7 +33,8 @@ class DirectusSDK { storage: options?.auth?.storage !== undefined ? options.auth.storage : new MemoryStore(), mode: options?.auth?.mode !== undefined ? options.auth.mode : 'cookie', - autoRefresh: options?.auth?.autoRefresh !== undefined ? options.auth.autoRefresh : true, + autoRefresh: + options?.auth?.autoRefresh !== undefined ? options.auth.autoRefresh : false, }; }