mirror of
https://github.com/ToolJet/ToolJet
synced 2026-04-30 09:57:19 +00:00
* 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>
13 lines
385 B
TypeScript
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;
|
|
}
|
|
}
|