forked from jsnbuchanan/crowd-funder-for-time-pwa
switch so personal contact JWT is link to this server (not endorser.ch), make empty-did URL show user's info
This commit is contained in:
@@ -138,7 +138,7 @@ export default class ContactImportView extends Vue {
|
||||
this.activeDid = settings.activeDid || "";
|
||||
this.apiServer = settings.apiServer || "";
|
||||
|
||||
// Retrieve the imported contacts from the query parameter
|
||||
// look for any imported contacts from the query parameter
|
||||
const importedContacts = (this.$route as Router).query[
|
||||
"contacts"
|
||||
] as string;
|
||||
@@ -146,7 +146,7 @@ export default class ContactImportView extends Vue {
|
||||
await this.setContactsSelected(JSON.parse(importedContacts));
|
||||
}
|
||||
|
||||
// match everything after /contact-import/ in the window.location.pathname
|
||||
// look for a JWT after /contact-import/ in the window.location.pathname
|
||||
const jwt = window.location.pathname.match(
|
||||
/\/contact-import\/(ey.+)$/,
|
||||
)?.[1];
|
||||
|
||||
Reference in New Issue
Block a user