[ad_1]
Need to implement a retry n times before rejecting an error on the following code:
const self = {
fetchPreAuthnConfig: (data) => {
return new Promise((resolve, reject) => {
$.ajax({
url: preAuthnEndpoint,
type: 'POST',
contentType: 'application/json',
dataType: 'json',
data: JSON.stringify(data),
success: ({ configurations }) => {
resolve(configurations);
},
error: (error) => {
reject(error);
},
});
});
},
[ad_2]