From af9a099bf1ff6760fcf00189ca5db12dfa341947 Mon Sep 17 00:00:00 2001 From: Quentin TREHEUX Date: Mon, 29 May 2023 11:21:23 +0200 Subject: [PATCH] [UPD] add route for mobile --- back/src/auth/auth.controller.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/back/src/auth/auth.controller.ts b/back/src/auth/auth.controller.ts index 33841a8..0881563 100644 --- a/back/src/auth/auth.controller.ts +++ b/back/src/auth/auth.controller.ts @@ -79,4 +79,9 @@ export class AuthController { async googleAuthRedirect(@Request() req: any) { return this.authService.login(req.user); } + + @Post('google/mobile') + async googleMobileAuth(@Body('idToken') idToken: string) { + return this.authService.loginWithGoogleMobile(idToken); + } }