Skip to content
This repository has been archived by the owner on Dec 21, 2021. It is now read-only.

Token Invalid #12

Open
iR3turnZ opened this issue Jun 15, 2021 · 3 comments
Open

Token Invalid #12

iR3turnZ opened this issue Jun 15, 2021 · 3 comments

Comments

@iR3turnZ
Copy link

iR3turnZ commented Jun 15, 2021

`(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
Copy link
Member

Is the timezone in the same country as your user?

@iR3turnZ
Copy link
Author

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

@codetheweb
Copy link
Member

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants