diff --git a/ui/.env b/ui/.env index 30588dd1..5da0c097 100644 --- a/ui/.env +++ b/ui/.env @@ -1,6 +1,6 @@ DEFAULT_TITLE=Inji Verify CAR DEFAULT_THEME=default_theme -DEFAULT_LANG=pt +DEFAULT_LANG=en DEFAULT_FONT_URL=https://fonts.googleapis.com/css?family=Inter OVP_QR_HEADER=INJI_OVP:// DEFAULT_FAVICON=favicon.ico diff --git a/ui/src/redux/features/verify/verifySaga.ts b/ui/src/redux/features/verify/verifySaga.ts index ca1f9ff3..2c38e847 100644 --- a/ui/src/redux/features/verify/verifySaga.ts +++ b/ui/src/redux/features/verify/verifySaga.ts @@ -43,7 +43,7 @@ function* fetchRequestUri(claims: string[]) { const parsedData = JSON.parse(data) as QrData; qrData = OPENID4VP_PROTOCOL + - btoa(`client_id=${parsedData.authorizationDetails.clientId}&response_type=${parsedData.authorizationDetails.responseType}&response_mode=direct_post&nonce=${parsedData.authorizationDetails.nonce}&state=${parsedData.requestId}&response_uri=${window.location.origin + window._env_.VERIFY_SERVICE_API_URL + parsedData.authorizationDetails.responseUri}&presentation_definition_uri=${ window.location.origin + window._env_.VERIFY_SERVICE_API_URL + parsedData.authorizationDetails.presentationDefinitionUri}&client_metadata={"name":"${window.location}"}&presentation_definition=${JSON.stringify(pdef)}`); + btoa(`client_id=${parsedData.authorizationDetails.clientId}&response_type=${parsedData.authorizationDetails.responseType}&response_mode=direct_post&nonce=${parsedData.authorizationDetails.nonce}&state=${parsedData.requestId}&response_uri=${window.location.origin + window._env_.VERIFY_SERVICE_API_URL + parsedData.authorizationDetails.responseUri}&presentation_definition_uri=${ window.location.origin + window._env_.VERIFY_SERVICE_API_URL + parsedData.authorizationDetails.presentationDefinitionUri}&client_metadata={"name":"INJI VERIFY"}&presentation_definition=${JSON.stringify(pdef)}`); txnId = parsedData.transactionId; reqId = parsedData.requestId; } catch (error) {