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 <philip.molares@udo.edu>
This commit is contained in:
Philip Molares 2021-01-16 23:53:46 +01:00 committed by David Mehren
parent 1c7452d066
commit 80c7ae2fa9
No known key found for this signature in database
GPG key ID: 185982BA4C42B7C3
10 changed files with 248 additions and 12 deletions

View file

@ -0,0 +1,15 @@
/*
* SPDX-FileCopyrightText: 2021 The HedgeDoc developers (see AUTHORS file)
*
* SPDX-License-Identifier: AGPL-3.0-only
*/
import { Module } from '@nestjs/common';
import { UsersModule } from '../../users/users.module';
import { TokensController } from './tokens/tokens.controller';
@Module({
imports: [UsersModule],
controllers: [TokensController],
})
export class PrivateApiModule {}