Skip to content

armgit / papra

Public Imported from GitHub
0

The minimalistic document archiving platform.

fix(config): added Google SSO configuration in public (#91)

Corentin THOMASSET538b490583d7
diff --git a/apps/papra-server/src/modules/config/config.models.test.ts b/apps/papra-server/src/modules/config/config.models.test.ts
index feb909d9..d7dc875f 100644
--- a/apps/papra-server/src/modules/config/config.models.test.ts
+++ b/apps/papra-server/src/modules/config/config.models.test.ts
@@ -23,6 +23,9 @@ describe('config models', () => {
github: {
isEnabled: true,
},
+ google: {
+ isEnabled: false,
+ },
},
},
documents: {
@@ -40,6 +43,9 @@ describe('config models', () => {
github: {
isEnabled: true,
},
+ google: {
+ isEnabled: false,
+ },
},
},
documents: {
diff --git a/apps/papra-server/src/modules/config/config.models.ts b/apps/papra-server/src/modules/config/config.models.ts
index 147c440e..8330d17e 100644
--- a/apps/papra-server/src/modules/config/config.models.ts
+++ b/apps/papra-server/src/modules/config/config.models.ts
@@ -19,6 +19,7 @@ export function getPublicConfig({ config }: { config: Config }) {
'auth.isPasswordResetEnabled',
'auth.isRegistrationEnabled',
'auth.providers.github.isEnabled',
+ 'auth.providers.google.isEnabled',
'documents.deletedDocumentsRetentionDays',
]);