🔧 fix: socialLogins default value (#1730)

* fix: socialLogins default value

* ci: add test for `AppService`
This commit is contained in:
Danny Avila 2024-02-05 11:26:12 -05:00 committed by GitHub
parent a2c35e8415
commit f30d6bd689
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 52 additions and 1 deletions

View file

@ -12,7 +12,7 @@ const paths = require('~/config/paths');
const AppService = async (app) => {
/** @type {TCustomConfig}*/
const config = (await loadCustomConfig()) ?? {};
const socialLogins = config.registration.socialLogins ?? [
const socialLogins = config?.registration?.socialLogins ?? [
'google',
'facebook',
'openid',