Skip to content

Commit

Permalink
fix crypto import
Browse files Browse the repository at this point in the history
  • Loading branch information
shamilovtim committed Aug 15, 2024
1 parent 1c6246f commit 706e8e6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/web5-connect/web5-connect-server.ts
Original file line number Diff line number Diff line change
@@ -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";

/**
Expand Down Expand Up @@ -67,7 +67,7 @@ export class Web5ConnectServer {
*/
public async setWeb5ConnectRequest(request: Web5ConnectRequest): Promise<SetWeb5ConnectRequestResult> {
// Generate a request URI
const requestId = randomUuid();
const requestId = CryptoUtils.randomUuid();
const request_uri = `${this.baseUrl}/connect/authorize/${requestId}.jwt`;

// Store the Request Object.
Expand Down

0 comments on commit 706e8e6

Please sign in to comment.