|
|
@ -6,8 +6,10 @@ import { HDNode } from "@ethersproject/hdnode"; |
|
|
|
import * as didJwt from "did-jwt"; |
|
|
|
import * as u8a from "uint8arrays"; |
|
|
|
|
|
|
|
import { Account } from "@/db/tables/accounts"; |
|
|
|
import { createEndorserJwt, ENDORSER_JWT_URL_LOCATION } from "@/libs/endorserServer"; |
|
|
|
import { |
|
|
|
createEndorserJwt, |
|
|
|
ENDORSER_JWT_URL_LOCATION, |
|
|
|
} from "@/libs/endorserServer"; |
|
|
|
import { DEFAULT_DID_PROVIDER_NAME } from "../veramo/setup"; |
|
|
|
|
|
|
|
export const DEFAULT_ROOT_DERIVATION_PATH = "m/84737769'/0'/0'/0'"; |
|
|
@ -95,7 +97,7 @@ export const accessToken = async (did?: string) => { |
|
|
|
const tokenPayload = { exp: endEpoch, iat: nowEpoch, iss: did }; |
|
|
|
return createEndorserJwt(did, tokenPayload); |
|
|
|
} else { |
|
|
|
return null; |
|
|
|
return ""; |
|
|
|
} |
|
|
|
}; |
|
|
|
|
|
|
|