Skip to content

Commit b7e2a57

Browse files
committed
chore: update validation
1 parent c84bd30 commit b7e2a57

File tree

4 files changed

+14
-16
lines changed

4 files changed

+14
-16
lines changed

src/discourse-verification/dto/generate-verification-token.dto.ts

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,6 @@ import { IsNotEmpty, IsString } from 'class-validator';
22

33
import { ApiProperty } from '@nestjs/swagger';
44

5-
import { AUTH_PROVIDERS } from '../../auth/constants/provider.constants';
6-
import { JwtProvider } from '../../shared/decorators/jwt-provider.decorator';
7-
85
export class GenerateVerificationTokenDto {
96
@ApiProperty({
107
description: 'The siwe JWT',
@@ -14,6 +11,8 @@ export class GenerateVerificationTokenDto {
1411
})
1512
@IsString()
1613
@IsNotEmpty()
17-
@JwtProvider(AUTH_PROVIDERS.SIWE)
14+
@IsString()
15+
16+
// @JwtProvider(AUTH_PROVIDERS.SIWE)
1817
readonly siweJwt: string;
1918
}

src/eas/dto/decrypt-attestation-secret.dto.ts

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
1+
import { IsNotEmpty, IsNumber, IsString } from 'class-validator';
2+
13
import { ApiProperty } from '@nestjs/swagger';
2-
import { IsString, IsNotEmpty, IsNumber } from 'class-validator';
3-
import { JwtProvider } from '../../shared/decorators/jwt-provider.decorator';
4-
import { AUTH_PROVIDERS } from '../../auth/constants/provider.constants';
54

65
export class DecryptAttestationSecretDto {
76
@ApiProperty({
@@ -12,7 +11,9 @@ export class DecryptAttestationSecretDto {
1211
})
1312
@IsString()
1413
@IsNotEmpty()
15-
@JwtProvider(AUTH_PROVIDERS.SIWE)
14+
@IsString()
15+
16+
// @JwtProvider(AUTH_PROVIDERS.SIWE)
1617
readonly siweJwt: string;
1718
@ApiProperty({
1819
description: 'Chain Id',

src/eas/dto/sign-delegated-attestation.dto.ts

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
1+
import { IsNotEmpty, IsNumber, IsString } from 'class-validator';
2+
13
import { ApiProperty } from '@nestjs/swagger';
2-
import { IsString, IsNotEmpty, IsNumber } from 'class-validator';
3-
import { JwtProvider } from '../../shared/decorators/jwt-provider.decorator';
4-
import { AUTH_PROVIDERS } from '../../auth/constants/provider.constants';
54

65
export class SignDelegatedAttestationDto {
76
@ApiProperty({
@@ -12,7 +11,7 @@ export class SignDelegatedAttestationDto {
1211
})
1312
@IsString()
1413
@IsNotEmpty()
15-
@JwtProvider(AUTH_PROVIDERS.SIWE)
14+
@IsString()
1615
readonly siweJwt: string;
1716
@ApiProperty({
1817
description: 'The siwe JWT or any provider JWT.',

src/eas/dto/sign-delegated-revocation.dto.ts

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
1+
import { IsNotEmpty, IsNumber, IsString } from 'class-validator';
2+
13
import { ApiProperty } from '@nestjs/swagger';
2-
import { IsString, IsNotEmpty, IsNumber } from 'class-validator';
3-
import { JwtProvider } from '../../shared/decorators/jwt-provider.decorator';
4-
import { AUTH_PROVIDERS } from '../../auth/constants/provider.constants';
54

65
export class SignDelegatedRevocationDto {
76
@ApiProperty({
@@ -12,7 +11,7 @@ export class SignDelegatedRevocationDto {
1211
})
1312
@IsString()
1413
@IsNotEmpty()
15-
@JwtProvider(AUTH_PROVIDERS.SIWE)
14+
@IsString()
1615
readonly siweJwt: string;
1716
@ApiProperty({
1817
description: 'Chain Id',

0 commit comments

Comments
 (0)