Skip to content

Commit

Permalink
fix: debug value in cred id
Browse files Browse the repository at this point in the history
Signed-off-by: Daniel Bluhm <dbluhm@pm.me>
  • Loading branch information
dbluhm committed Jul 17, 2024
1 parent 084088c commit 1ffd5e8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions oid4vci/oid4vci/public_routes.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
from dataclasses import dataclass
from secrets import token_urlsafe
from typing import Any, Dict, List, Mapping, Optional
import uuid

import jwt
from aiohttp import web
Expand Down Expand Up @@ -334,8 +335,7 @@ async def issue_cred(request: web.Request):
current_time_unix_timestamp = int(current_time.timestamp())
formatted_time = current_time.strftime("%Y-%m-%dT%H:%M:%SZ")

# cred_id = str(uuid.uuid4())
cred_id = "https://example.com/1"
cred_id = f"urn:uuid:{str(uuid.uuid4())}"
if "proof" not in body:
raise web.HTTPBadRequest(reason="proof is required for jwt_vc_json")
if ex_record.nonce is None:
Expand Down

0 comments on commit 1ffd5e8

Please sign in to comment.