Compare commits

...

2 Commits

2 changed files with 2 additions and 1 deletions

View File

@ -19,7 +19,7 @@ export default class UppyFileUpload extends BasePlugin {
} }
install() { install() {
this.uppy.addUploader(this.handleUpload); this.uppy.addUploader(this.handleUpload.bind(this));
} }
private async handleUpload(fileIDs: string[]) { private async handleUpload(fileIDs: string[]) {

View File

@ -76,6 +76,7 @@ export class PortalAuthProvider implements RequiredAuthProvider {
if (!redirectTo) { if (!redirectTo) {
redirectTo = ret ? "/dashboard" : "/login"; redirectTo = ret ? "/dashboard" : "/login";
} }
this._sdk.setAuthToken(this._sdk.account().jwtToken);
} }
return { return {