Skip to content

Commit

Permalink
feature_get_credentials erro url issuer
Browse files Browse the repository at this point in the history
  • Loading branch information
camiloramirez88 committed May 22, 2024
1 parent 310512b commit edd9a0c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
3 changes: 2 additions & 1 deletion src/routes/client.js
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,8 @@ router.get('/registry', (req, res) => {
res.render('successful_registry', {
lng: req.language,
sessionExists: !!req.session.jwt,
user: userDetails
user: userDetails,
ISSUER_BASE_URL: process.env.ISSUER_BASE_URL,
});
})
.catch(error => {
Expand Down
5 changes: 3 additions & 2 deletions src/views/successful_registry.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@
</div>

<script>
const IssuerBaseUrl = "<%= ISSUER_BASE_URL %>";
var userData = {
firstName: "<%= user.firstName %>",
familyName: "<%= user.familyName %>",
Expand Down Expand Up @@ -96,7 +97,7 @@
};
// Setup the fetch request options for a POST request
fetch('https://1tl0n57x-3005.eun1.devtunnels.ms/generate_qr', {
fetch(`${IssuerBaseUrl}/generate_qr`, {
method: 'POST', // or 'PUT'
headers: {
'Content-Type': 'application/json',
Expand Down Expand Up @@ -147,7 +148,7 @@
"phone": userData.phone
}
fetch('https://1tl0n57x-3005.eun1.devtunnels.ms/generate_qr/werify_certificat', {
fetch(`${IssuerBaseUrl}/generate_qr/werify_certificat`, {
method: 'POST',
headers: {
'Content-Type': 'application/json',
Expand Down

0 comments on commit edd9a0c

Please sign in to comment.