TuyaAPI / openapi

🚪 a wrapper for Tuya's OpenAPI
https://github.com/TuyaAPI/openapi/blob/master/docs/classes/api.openapi.md
MIT License
20 stars 13 forks source link

Token Invalid #12

Open HoeblingerDaniel opened 3 years ago

HoeblingerDaniel commented 3 years ago

`(async () => { await api.getToken(); const uid = await api.putUser({ countryCode: '', username: '**@gmail.com', password: '****', usernameType: 2});

--->const token = await api.getDeviceToken({uid, timezone: 'Austria/Vienna'}); Token invalid right here console.log(await api.getDevicesByToken(token)); })();`

Im always getting a Invalid Token error msg but i cant figure out why. Can anyone help?

codetheweb commented 3 years ago

Is the timezone in the same country as your user?

HoeblingerDaniel commented 3 years ago

Actually, the Timezone is Europe/Vienna but with that it still doesn't work I checked it in the App

codetheweb commented 3 years ago

Could you post the full output from when it fails please?