Skip to content

Commit

Permalink
fix: social auth data
Browse files Browse the repository at this point in the history
  • Loading branch information
Shchepotin committed Sep 24, 2023
1 parent 1bf7b33 commit 22bf773
Show file tree
Hide file tree
Showing 4 changed files with 44 additions and 4 deletions.
12 changes: 11 additions & 1 deletion src/auth-apple/auth-apple.controller.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,11 @@
import { Body, Controller, HttpCode, HttpStatus, Post } from '@nestjs/common';
import {
Body,
Controller,
HttpCode,
HttpStatus,
Post,
SerializeOptions,
} from '@nestjs/common';
import { ApiTags } from '@nestjs/swagger';
import { AuthService } from 'src/auth/auth.service';
import { AuthAppleService } from './auth-apple.service';
Expand All @@ -16,6 +23,9 @@ export class AuthAppleController {
private readonly authAppleService: AuthAppleService,
) {}

@SerializeOptions({
groups: ['me'],
})
@Post('login')
@HttpCode(HttpStatus.OK)
async login(@Body() loginDto: AuthAppleLoginDto): Promise<LoginResponseType> {
Expand Down
12 changes: 11 additions & 1 deletion src/auth-facebook/auth-facebook.controller.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,11 @@
import { Body, Controller, HttpCode, HttpStatus, Post } from '@nestjs/common';
import {
Body,
Controller,
HttpCode,
HttpStatus,
Post,
SerializeOptions,
} from '@nestjs/common';
import { ApiTags } from '@nestjs/swagger';
import { AuthService } from 'src/auth/auth.service';
import { AuthFacebookService } from './auth-facebook.service';
Expand All @@ -16,6 +23,9 @@ export class AuthFacebookController {
private readonly authFacebookService: AuthFacebookService,
) {}

@SerializeOptions({
groups: ['me'],
})
@Post('login')
@HttpCode(HttpStatus.OK)
async login(
Expand Down
12 changes: 11 additions & 1 deletion src/auth-google/auth-google.controller.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,11 @@
import { Body, Controller, HttpCode, HttpStatus, Post } from '@nestjs/common';
import {
Body,
Controller,
HttpCode,
HttpStatus,
Post,
SerializeOptions,
} from '@nestjs/common';
import { ApiTags } from '@nestjs/swagger';
import { AuthService } from 'src/auth/auth.service';
import { AuthGoogleService } from './auth-google.service';
Expand All @@ -16,6 +23,9 @@ export class AuthGoogleController {
private readonly authGoogleService: AuthGoogleService,
) {}

@SerializeOptions({
groups: ['me'],
})
@Post('login')
@HttpCode(HttpStatus.OK)
async login(
Expand Down
12 changes: 11 additions & 1 deletion src/auth-twitter/auth-twitter.controller.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,11 @@
import { Body, Controller, HttpCode, HttpStatus, Post } from '@nestjs/common';
import {
Body,
Controller,
HttpCode,
HttpStatus,
Post,
SerializeOptions,
} from '@nestjs/common';
import { ApiTags } from '@nestjs/swagger';
import { AuthService } from 'src/auth/auth.service';
import { AuthTwitterService } from './auth-twitter.service';
Expand All @@ -16,6 +23,9 @@ export class AuthTwitterController {
private readonly authTwitterService: AuthTwitterService,
) {}

@SerializeOptions({
groups: ['me'],
})
@Post('login')
@HttpCode(HttpStatus.OK)
async login(
Expand Down

0 comments on commit 22bf773

Please sign in to comment.