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:
2025-01-06 08:52:10 -07:00
parent 18a3e1cc27
commit 2e7700731b
13 changed files with 119 additions and 38 deletions

View File

@@ -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];