Skip to content

Instantly share code, notes, and snippets.

View daweido's full-sized avatar

David Rigaux daweido

View GitHub Profile
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';
export class UserController {
constructor(private userService: UserService) {}
async loginUser(