forked from jsnbuchanan/crowd-funder-for-time-pwa
cache the passkey JWANT access token for multiple signatures
This commit is contained in:
@@ -65,7 +65,7 @@ import {
|
||||
} from "@/constants/app";
|
||||
import { db } from "@/db/index";
|
||||
import { MASTER_SETTINGS_KEY } from "@/db/tables/settings";
|
||||
import { accessToken } from "@/libs/crypto";
|
||||
import { getHeaders } from "@/libs/endorserServer";
|
||||
|
||||
@Component({ components: { PhotoDialog, QuickNav } })
|
||||
export default class SharedPhotoView extends Vue {
|
||||
@@ -151,10 +151,7 @@ export default class SharedPhotoView extends Vue {
|
||||
let result;
|
||||
try {
|
||||
// send the image to the server
|
||||
const token = await accessToken(this.activeDid);
|
||||
const headers = {
|
||||
Authorization: "Bearer " + token,
|
||||
};
|
||||
const headers = await getHeaders(this.activeDid);
|
||||
const formData = new FormData();
|
||||
formData.append(
|
||||
"image",
|
||||
|
||||
Reference in New Issue
Block a user