LoginRadius / html5-sdk

The LoginRadius html5 and JS library will let you integrate LoginRadius' customer identity platform with your HTML5/JS application(s).
https://www.loginradius.com
MIT License
9 stars 16 forks source link

Change to lower case the first letter of error Msg #3

Closed developer-hola closed 6 years ago

developer-hola commented 6 years ago

Hi, in the response of your API the key errorCode come with camel case with the first letter in lower case, but in the JS SDK in the var errorMsgs the kay come with the first letter on upper case, can you change to lower case this letter? we have all the implementation with the first letter in lower case.

Karl-LoginRadius commented 6 years ago

Hi,

In the V2 version of the LoginRadius API all error messages are returned in the standard format with the ErrorCode key. You can see this format on our documentation here: https://docs.loginradius.com/api/v2/getting-started/data-points-and-response-codes/error-codes

In the v1 version of the SDK this returned in the lowercase errorCode format.

Thanks,

developer-hola commented 6 years ago

Thanks