Skip to content

📈 Open source, privacy-first web analytics — a cookie-less Google Analytics alternative with built-in error tracking and performance monitoring. Self-host it or use our cloud. Get started for free!

IsURL -> IsString

Blue Mouse6ce7c63364bb
diff --git a/backend/apps/cloud/src/auth/dtos/sso-generate.dto.ts b/backend/apps/cloud/src/auth/dtos/sso-generate.dto.ts
index a9182a421..f776b0f88 100644
--- a/backend/apps/cloud/src/auth/dtos/sso-generate.dto.ts
+++ b/backend/apps/cloud/src/auth/dtos/sso-generate.dto.ts
@@ -1,5 +1,5 @@
import { ApiProperty } from '@nestjs/swagger'
-import { IsEnum, IsOptional, IsUrl } from 'class-validator'
+import { IsEnum, IsOptional } from 'class-validator'
export enum SSOProviders {
GOOGLE = 'google',
@@ -13,7 +13,6 @@ export class SSOGenerateDto {
required: false,
})
@IsOptional()
- @IsUrl()
redirectUrl: string
@ApiProperty({
diff --git a/backend/apps/community/src/auth/dtos/oidc-auth.dto.ts b/backend/apps/community/src/auth/dtos/oidc-auth.dto.ts
index f440fdeeb..f8b1defbe 100644
--- a/backend/apps/community/src/auth/dtos/oidc-auth.dto.ts
+++ b/backend/apps/community/src/auth/dtos/oidc-auth.dto.ts
@@ -1,11 +1,11 @@
import { ApiProperty } from '@nestjs/swagger'
-import { IsString, IsOptional, IsUrl } from 'class-validator'
+import { IsString, IsOptional } from 'class-validator'
export class OIDCInitiateDto {
@ApiProperty({
description: 'Redirect URL after successful authentication',
})
- @IsUrl()
+ @IsString()
redirectUrl: string
@ApiProperty({