Retrieves a user challenge by token.
Represents the input parameters for fetching a challenge.
The unique identifier for the challenge.
The JSON Web Token (JWT) representing the user.
1const response = await client.getUserChallenge({
2 userToken: 'dummy-user-token',
3 challengeId: 'challenge-id',
4})
5console.log(response.data?.challenge)
1{
2 "data": {
3 "challenge": {
4 "id": "c4d1da72-111e-4d52-bdbf-2e74a2d803d5",
5 "correlationIds": [
6 "54399e5a-1bf6-4921-9559-10c1115678cd"
7 ],
8 "errorCode": 155121,
9 "errorMessage": "challenge expired",
10 "status": "PENDING",
11 "type": "SET_PIN"
12 }
13 }
14}