mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2024-12-26 17:22:12 +00:00
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:
parent
327f36af94
commit
52bb44a561
1 changed files with 2 additions and 2 deletions
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue