opentrace-community / opentrace-cloud-functions

OpenTrace Cloud Functions. Reference implementation of the BlueTrace protocol.
https://bluetrace.io
GNU General Public License v3.0
273 stars 121 forks source link

getUploadToken Unhandled error Error [ERR_CRYPTO_INVALID_STATE]: Invalid state for operation getAuthTag #19

Closed matiasmospan closed 4 years ago

matiasmospan commented 4 years ago

Hi All Everything working ok with the deploy on firebase. Build ok in AndroidStudio the app. Validating ok OTP but can't reach the upload. Gettign this error "getUploadToken Unhandled error Error [ERR_CRYPTO_INVALID_STATE]: Invalid state for operation getAuthTag" and "getTempIDs Unhandled error Error [ERR_CRYPTO_INVALID_STATE]: Invalid state for operation getAuthTag"

Codes collection is missing in firebase.

Thx

matiasmospan commented 4 years ago

Solved!. use aes-256-gcm cipher and worked ok!