@@ -14,21 +14,24 @@ export const TestingView = () => {
14
14
const [ verificationRequest , setVerificationRequest ] = useState ( '' ) ;
15
15
const [ verificationRequestId , setVerificationRequestId ] = useState ( '' ) ;
16
16
const [ disabled , setIsDisabled ] = useState ( true ) ;
17
- const { data : authRequestStatus , isLoading } = useAuthRequestStatus (
17
+ const { data : authRequestStatus } = useAuthRequestStatus (
18
18
verificationRequestId ,
19
19
disabled ,
20
20
) ;
21
21
const [ did , setDid ] = useState ( '' ) ;
22
22
23
23
const getCredentialOfferInTime = async ( ) => {
24
24
try {
25
- const response = await fetch ( '/api/credential-offer' , {
26
- method : 'POST' ,
27
- body : JSON . stringify ( {
28
- credentialType : 'InTimeIssuance' ,
29
- client_id : did ,
30
- } ) ,
31
- } ) ;
25
+ const response = await fetch (
26
+ '/interop-testing-frontend/api/credential-offer' ,
27
+ {
28
+ method : 'POST' ,
29
+ body : JSON . stringify ( {
30
+ credentialType : 'InTimeIssuance' ,
31
+ client_id : did ,
32
+ } ) ,
33
+ } ,
34
+ ) ;
32
35
33
36
if ( ! response . ok ) {
34
37
console . error ( `Error fetching credential offer: ${ response . status } ` ) ;
@@ -47,13 +50,16 @@ export const TestingView = () => {
47
50
48
51
const getCredentialOfferDeffered = async ( ) => {
49
52
try {
50
- const response = await fetch ( '/api/credential-offer' , {
51
- method : 'POST' ,
52
- body : JSON . stringify ( {
53
- credentialType : 'DefferedIssuance' ,
54
- client_id : did ,
55
- } ) ,
56
- } ) ;
53
+ const response = await fetch (
54
+ '/interop-testing-frontendapi/credential-offer' ,
55
+ {
56
+ method : 'POST' ,
57
+ body : JSON . stringify ( {
58
+ credentialType : 'DefferedIssuance' ,
59
+ client_id : did ,
60
+ } ) ,
61
+ } ,
62
+ ) ;
57
63
58
64
if ( ! response . ok ) {
59
65
console . error ( `Error fetching credential offer: ${ response . status } ` ) ;
@@ -72,13 +78,16 @@ export const TestingView = () => {
72
78
73
79
const getCredentialOfferPreAuth = async ( ) => {
74
80
try {
75
- const response = await fetch ( '/api/credential-offer' , {
76
- method : 'POST' ,
77
- body : JSON . stringify ( {
78
- credentialType : 'PreAuthIssuance' ,
79
- client_id : did ,
80
- } ) ,
81
- } ) ;
81
+ const response = await fetch (
82
+ '/interop-testing-frontendapi/credential-offer' ,
83
+ {
84
+ method : 'POST' ,
85
+ body : JSON . stringify ( {
86
+ credentialType : 'PreAuthIssuance' ,
87
+ client_id : did ,
88
+ } ) ,
89
+ } ,
90
+ ) ;
82
91
83
92
if ( ! response . ok ) {
84
93
console . error ( `Error fetching credential offer: ${ response . status } ` ) ;
0 commit comments