Skip to content

Instantly share code, notes, and snippets.

View daweido's full-sized avatar

David Rigaux daweido

View GitHub Profile
@daweido
daweido / user.controller.ts
Last active April 19, 2023 20:03
SMS OTP - Partial User authentification
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(