mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-18 15:33:04 +00:00
[CST-15074][#3355] PR review
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user