forked from trent_larson/crowd-funder-for-time-pwa
remove remaining getIdentity calls & fix QR code for did:peer
This commit is contained in:
@@ -211,18 +211,6 @@ export const getAccount = async (
|
||||
return account;
|
||||
};
|
||||
|
||||
export const getIdentity = async (activeDid: string): Promise<IIdentifier> => {
|
||||
const account = await getAccount(activeDid);
|
||||
const identity = JSON.parse(account?.identity || "null");
|
||||
|
||||
if (!identity) {
|
||||
throw new Error(
|
||||
`Attempted to load identity ${activeDid} but no identifier was found`,
|
||||
);
|
||||
}
|
||||
return identity;
|
||||
};
|
||||
|
||||
/**
|
||||
* Generates a new identity, saves it to the database, and sets it as the active identity.
|
||||
* @return {Promise<string>} with the DID of the new identity
|
||||
|
||||
Reference in New Issue
Block a user