From 706e8e6c13fffcc2eba5f41e4d7b2b66e4ba3d78 Mon Sep 17 00:00:00 2001 From: Tim Shamilov Date: Fri, 16 Aug 2024 00:18:09 +0800 Subject: [PATCH] fix crypto import --- src/web5-connect/web5-connect-server.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/web5-connect/web5-connect-server.ts b/src/web5-connect/web5-connect-server.ts index 72ff1e6..7176102 100644 --- a/src/web5-connect/web5-connect-server.ts +++ b/src/web5-connect/web5-connect-server.ts @@ -1,5 +1,5 @@ import { getDialectFromUrl } from "../storage.js"; -import { randomUuid } from '@web5/crypto/utils'; +import { CryptoUtils } from '@web5/crypto'; import { SqlTtlCache } from "./sql-ttl-cache.js"; /** @@ -67,7 +67,7 @@ export class Web5ConnectServer { */ public async setWeb5ConnectRequest(request: Web5ConnectRequest): Promise { // Generate a request URI - const requestId = randomUuid(); + const requestId = CryptoUtils.randomUuid(); const request_uri = `${this.baseUrl}/connect/authorize/${requestId}.jwt`; // Store the Request Object.