Skip to content

Instantly share code, notes, and snippets.

Avatar

David Rigaux daweido

View GitHub Profile
@daweido
daweido / user.controller.ts
Last active Jul 15, 2022
SMS OTP - Partial User authentification
View user.controller.ts
import { Controller, Get, Res, HttpStatus, Body, Post } from '@nestjs/common';
import { User } from './interfaces/user.interface';
import { UserService } from './user.service';
@Controller('user')
export class UserController {
constructor(private userService: UserService) {}
@Post('/login')
async loginUser(