mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2024-11-27 03:58:02 -05: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
53a0c87a53
commit
d9799717b5
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