forked from trent_larson/crowd-funder-for-time-pwa
change accessToken to take a DID
This commit is contained in:
@@ -356,7 +356,7 @@ export default class ProjectsView extends Vue {
|
||||
async loadProjects(identifier?: IIdentifier, urlExtra: string = "") {
|
||||
const identity = identifier || this.currentIid;
|
||||
const url = `${this.apiServer}/api/v2/report/plansByIssuer?${urlExtra}`;
|
||||
const token: string = await accessToken(identity);
|
||||
const token: string = await accessToken(identity.did);
|
||||
await this.projectDataLoader(url, token);
|
||||
}
|
||||
|
||||
@@ -474,7 +474,7 @@ export default class ProjectsView extends Vue {
|
||||
async loadOffers(identifier?: IIdentifier, urlExtra: string = "") {
|
||||
const identity = identifier || this.currentIid;
|
||||
const url = `${this.apiServer}/api/v2/report/offers?offeredByDid=${identity.did}${urlExtra}`;
|
||||
const token: string = await accessToken(identity);
|
||||
const token: string = await accessToken(identity.did);
|
||||
await this.offerDataLoader(url, token);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user