FIX: updated protospack lib

This commit is contained in:
rodrigo.zamboni
2022-05-03 17:07:57 -03:00
parent 7f677f0376
commit a68d312447
6 changed files with 9228 additions and 22 deletions
+3 -2
View File
@@ -5,6 +5,7 @@ import { AuthClientService } from 'src/clients/auth/client.service';
interface ISignIn {
username: string;
password: string;
totp: string;
}
@Controller('auth')
@@ -12,11 +13,11 @@ export class AuthController {
constructor(private authClient: AuthClientService) {}
@Post()
async signIn(@Body() { username, password }: ISignIn) {
async signIn(@Body() { username, password, totp }: ISignIn) {
console.log(`/auth`, 'SignIn');
const tokens = await this.authClient
.signIn({ username, password })
.signIn({ username, password, totp })
.then((result) => result)
.catch((err) => {
throw new UnauthorizedException(err.message);