Sends a challenge via a secure communication mechanism as part of the ongoing Embedded or Hybrid SCA process.
A distinct identifier for the SCA authentication event.
The SCA authentication event challenge request.
A Promise that resolves to the SCA authentication event challenge response.
If the HTTP request fails.
// Example usage:
authenticationService.sendScaChallenge(eventId, request)
.then((response) => {
console.log(response);
})
.catch((error) => {
console.error(`Error sending SCA challenge.`);
});
Submits an Embedded or Hybrid authentication attempt for a Strong Customer Authentication (SCA) event.
A distinct identifier for the SCA authentication event.
The SCA authentication event attempt request.
A Promise that resolves to the SCA authentication event attempt response.
If the HTTP request fails.
// Example usage:
authenticationService.submitScaAttempt(eventId, request)
.then((response) => {
console.log(response);
})
.catch((error) => {
console.error(`Error submitting SCA attempt.`);
});
Static
getRetrieves the singleton instance of the AuthenticationService class.
The singleton instance of the AuthenticationService class.
// Usage:
const authenticationService = AuthenticationService.getInstance();
Service class for managing authentication related operations.