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!

554 B
Raw Blame
import { ApiProperty } from '@nestjs/swagger'
import { IsEnum, IsOptional } from 'class-validator'

export enum SSOProviders {
  GOOGLE = 'google',
  GITHUB = 'github',
}

export class SSOGenerateDto {
  @ApiProperty({
    description:
      'Redirect URL after successful authentication; unused. Only set for compatibility with the Community Edition.',
    required: false,
  })
  @IsOptional()
  redirectUrl: string

  @ApiProperty({
    description: 'SSO provider name',
    enum: SSOProviders,
  })
  @IsEnum(SSOProviders)
  provider: SSOProviders
}