AuthService: Fix type of toAuthTokenWithSecretDto

toAuthTokenDto does not return nor accept a nullish value anymore,
so the types can be adjusted.

Signed-off-by: David Mehren <git@herrmehren.de>
This commit is contained in:
David Mehren 2021-04-29 16:07:58 +02:00
parent 53a0c87a53
commit d9799717b5
No known key found for this signature in database
GPG key ID: 185982BA4C42B7C3

View file

@ -198,9 +198,9 @@ export class AuthService {
}
toAuthTokenWithSecretDto(
authToken: AuthToken | null | undefined,
authToken: AuthToken,
secret: string,
): AuthTokenWithSecretDto | null {
): AuthTokenWithSecretDto {
const tokenDto = this.toAuthTokenDto(authToken);
return {
...tokenDto,