Skip to content

Commit

Permalink
BAH-4119 | Fix. Datatype of tokens in VerifyOtp response body
Browse files Browse the repository at this point in the history
  • Loading branch information
mohan-13 committed Nov 26, 2024
1 parent be1a82e commit 6e8f806
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ public class AbhaAddressLoginVerifyOTPResponse
public string authResult { get; set; }
public string message { get; set; }
public List<User> users { get; set; }
public List<Token> tokens { get; set; }
public Token tokens { get; set; }
}

public class User
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -300,7 +300,7 @@ public async Task<ActionResult> AbhaAddressVerifyOtp([FromHeader(Name = CORRELAT
AbhaAddressLoginVerifyOTPResponse gatewayResponse =
JsonConvert.DeserializeObject<AbhaAddressLoginVerifyOTPResponse>(responseContent);
HealthIdNumberTokenDictionary[sessionId] =
new TokenRequest(gatewayResponse.tokens.FirstOrDefault()?.token);
new TokenRequest(gatewayResponse.tokens.token);
AbhaAddressVerifyOtpResponse abhaAddressVerifyOtpResponse = new AbhaAddressVerifyOtpResponse()
{
AuthResult = gatewayResponse.authResult,
Expand Down

0 comments on commit 6e8f806

Please sign in to comment.