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!

isuuid -> isstring

Blue Mousea204e87b95be
diff --git a/src/auth/dtos/process-sso-code.dto.ts b/src/auth/dtos/process-sso-code.dto.ts
index d87b341be..cc05d0935 100644
--- a/src/auth/dtos/process-sso-code.dto.ts
+++ b/src/auth/dtos/process-sso-code.dto.ts
@@ -1,5 +1,5 @@
import { ApiProperty } from '@nestjs/swagger'
-import { IsString, IsUUID } from 'class-validator'
+import { IsString } from 'class-validator'
export class ProcessSSOCodeDto {
@ApiProperty({
@@ -13,6 +13,6 @@ export class ProcessSSOCodeDto {
description: 'SSO session identifier',
example: '123e4567-e89b-12d3-a456-426614174000',
})
- @IsUUID()
+ @IsString()
hash: string
}
diff --git a/src/auth/dtos/sso-get-jwt-by-hash.dto.ts b/src/auth/dtos/sso-get-jwt-by-hash.dto.ts
index e32363569..cc58875d2 100644
--- a/src/auth/dtos/sso-get-jwt-by-hash.dto.ts
+++ b/src/auth/dtos/sso-get-jwt-by-hash.dto.ts
@@ -1,5 +1,5 @@
import { ApiProperty } from '@nestjs/swagger'
-import { IsEnum, IsUUID } from 'class-validator'
+import { IsEnum, IsString } from 'class-validator'
import { SSOProviders } from './sso-generate.dto'
@@ -8,7 +8,7 @@ export class SSOGetJWTByHashDto {
description: 'SSO session identifier',
example: '123e4567-e89b-12d3-a456-426614174000',
})
- @IsUUID()
+ @IsString()
hash: string
@ApiProperty({
diff --git a/src/auth/dtos/sso-link.dto.ts b/src/auth/dtos/sso-link.dto.ts
index 5e76c2f80..5e244573e 100644
--- a/src/auth/dtos/sso-link.dto.ts
+++ b/src/auth/dtos/sso-link.dto.ts
@@ -1,5 +1,5 @@
import { ApiProperty } from '@nestjs/swagger'
-import { IsEnum, IsUUID } from 'class-validator'
+import { IsEnum, IsString } from 'class-validator'
import { SSOProviders } from './sso-generate.dto'
@@ -8,7 +8,7 @@ export class SSOLinkDto {
description: 'SSO session identifier',
example: '123e4567-e89b-12d3-a456-426614174000',
})
- @IsUUID()
+ @IsString()
hash: string
@ApiProperty({