ToolJet/server/ee/controllers/oauth.controller.ts
Midhun G S 5000f745b1
Github OAuth integration (#1837)
* Initial commit

* git auth

* git sso

* Git sso

* Git Oauth rebase

* review comments

* added email validation

* improvement

* Package lock revert

* E2E test case fix

* fix data population in migration

* Supress initial error thrown by google

* Fix

* e2e test cases

* added e2e test cases

* isValidDomain improvement

* e2e test cases fix

Co-authored-by: Akshay Sasidharan <akshaysasidharan93@gmail.com>
2022-01-27 15:21:17 +05:30

13 lines
385 B
TypeScript

import { Body, Controller, Post, Request } from '@nestjs/common';
import { OauthService } from '../services/oauth/oauth.service';
@Controller('oauth')
export class OauthController {
constructor(private oauthService: OauthService) {}
@Post('sign-in')
async create(@Request() req, @Body() body) {
const result = await this.oauthService.signIn(body);
return result;
}
}