diff --git a/src/utils/editorSetup.ts b/src/utils/editorSetup.ts index 720bba1..f26f122 100644 --- a/src/utils/editorSetup.ts +++ b/src/utils/editorSetup.ts @@ -57,7 +57,7 @@ export const createProvider = ( url: serverUrl(), name: documentId, document: ydoc, - token: modificationSecret + token: modificationSecret || 'readOnly' }); };