auth: Remove userName parameter of removeToken function

As suggested by @innaytool

Signed-off-by: Philip Molares <philip.molares@udo.edu>
This commit is contained in:
Philip Molares 2021-01-23 22:24:59 +01:00 committed by David Mehren
parent a8b46923fd
commit 14a4872f49
No known key found for this signature in database
GPG key ID: 185982BA4C42B7C3
3 changed files with 4 additions and 6 deletions

View file

@ -48,7 +48,6 @@ export class TokensController {
@Delete('/:keyId')
@HttpCode(204)
async deleteToken(@Param('keyId') keyId: string) {
// ToDo: Get real userName
return this.authService.removeToken('hardcoded', keyId);
return this.authService.removeToken(keyId);
}
}