π¨ The ultimate agentic social media scheduling tool π€
TypeScript nextjsopen-sourceopen-source-social-media-scheduling-toolosspostiz-cloudpostiz-hostedredisscheduling-toolsocial-media-scheduling-tooltypescript
feat: oidc fix
Nevo David215398e873b2
diff --git a/apps/backend/src/services/auth/auth.service.ts b/apps/backend/src/services/auth/auth.service.tsindex 3b00bcd22..8dea316e7 100644--- a/apps/backend/src/services/auth/auth.service.ts+++ b/apps/backend/src/services/auth/auth.service.ts@@ -20,8 +20,8 @@ export class AuthService {private _notificationService: NotificationService,private _emailService: EmailService) {}- async canRegister() {- if (!process.env.DISABLE_REGISTRATION) {+ async canRegister(provider: string) {+ if (!process.env.DISABLE_REGISTRATION || provider === Provider.GENERIC) {return true;}@@ -42,7 +42,7 @@ export class AuthService {throw new Error('User already exists');}- if (!(await this.canRegister())) {+ if (!(await this.canRegister(provider))) {throw new Error('Registration is disabled');}@@ -144,7 +144,7 @@ export class AuthService {return user;}- if (!(await this.canRegister()) && provider !== Provider.GENERIC) {+ if (!(await this.canRegister(provider))) {throw new Error('Registration is disabled');}