rename token param to authentication-token

This commit is contained in:
Art Lowel
2020-07-01 18:42:24 +02:00
parent 9a4f962a21
commit 68ecc7ac31

View File

@@ -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;
}); });
} }