[CST-15074][#3355] PR review

This commit is contained in:
Vincenzo Mecca
2025-03-07 21:22:10 +01:00
parent 77b027a6c6
commit f56b6856dd
13 changed files with 145 additions and 122 deletions

View File

@@ -57,7 +57,6 @@ import {
NativeWindowRef,
NativeWindowService,
} from '../services/window.service';
import { NoContent } from '../shared/NoContent.model';
import {
getAllSucceededRemoteDataPayload,
getFirstCompletedRemoteData,
@@ -80,7 +79,6 @@ import {
AuthTokenInfo,
TOKENITEM,
} from './models/auth-token-info.model';
import { MachineToken } from './models/machine-token.model';
import {
getAuthenticatedUserId,
getAuthenticationToken,
@@ -692,18 +690,4 @@ export class AuthService {
}
}
/**
* Create a new machine token for the current user
*/
public createMachineToken(): Observable<RemoteData<MachineToken>> {
return this.authRequestService.postToMachineTokenEndpoint();
}
/**
* Delete the machine token for the current user
*/
public deleteMachineToken(): Observable<RemoteData<NoContent>> {
return this.authRequestService.deleteToMachineTokenEndpoint();
}
}