mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-18 07:23:03 +00:00
rename token param to authentication-token
This commit is contained in:
@@ -24,7 +24,7 @@ export class FileService {
|
|||||||
*/
|
*/
|
||||||
downloadFile(url: string) {
|
downloadFile(url: string) {
|
||||||
this.authService.getShortlivedToken().pipe(take(1)).subscribe((token) => {
|
this.authService.getShortlivedToken().pipe(take(1)).subscribe((token) => {
|
||||||
this._window.nativeWindow.location.href = hasValue(token) ? new URLCombiner(url, `?token=${token}`).toString() : url;
|
this._window.nativeWindow.location.href = hasValue(token) ? new URLCombiner(url, `?authentication-token=${token}`).toString() : url;
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user