From 025f24122cdc19dcd546537f4fa918010b4cad26 Mon Sep 17 00:00:00 2001 From: Philip Molares Date: Sat, 16 Jan 2021 23:53:46 +0100 Subject: [PATCH] private: adds tokens controller adds private api adds AuthTokenDto and AuthTokenWithSecretDto adds necessary methods in the users service adds RandomnessError Signed-off-by: Philip Molares --- src/api/private/tokens/tokens.controller.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/api/private/tokens/tokens.controller.ts b/src/api/private/tokens/tokens.controller.ts index c53677326..18210ad21 100644 --- a/src/api/private/tokens/tokens.controller.ts +++ b/src/api/private/tokens/tokens.controller.ts @@ -36,7 +36,9 @@ export class TokensController { } @Post() - async postToken(@Body() label: string): Promise { + async postTokenRequest( + @Body() label: string, + ): Promise { // ToDo: Get real userName const authToken = await this.usersService.createTokenForUser( 'hardcoded',