I/flutter (14876): FormatException: Invalid hexadecimal code unit U+002d. (at offset 1)
I/flutter (14876): An unknown error occurred
The salt value that was coming back from Cognito had a negative sign in front of it (U+002d corresponds to the '-' character) and the BigInt.parse() function was failing to account for that. This change should detect the negative sign, strip it, and add the binary 1 in the top bit position to the first hex digit.
…sing errors
I was getting this error before this commit:
I/flutter (14876): FormatException: Invalid hexadecimal code unit U+002d. (at offset 1) I/flutter (14876): An unknown error occurred
The salt value that was coming back from Cognito had a negative sign in front of it (U+002d corresponds to the '-' character) and the BigInt.parse() function was failing to account for that. This change should detect the negative sign, strip it, and add the binary 1 in the top bit position to the first hex digit.