fitbitphp icon indicating copy to clipboard operation
fitbitphp copied to clipboard

Error Code 401 After a few days storing token and secret in database

Open johannesweber opened this issue 10 years ago • 0 comments

Hi Pavel,

thank you for this great library it helped us a lot. I have one issue and i hope you can help me out. I am retrieving fitbit token and secret succesfully from fitbit API. I use (https://github.com/dongri/OAuthSwift) for the oauth process. afterwards i store the credentials in my database and use your library for fetching data from fitbit, after a couple of day (2-3) i get the error 401 from fitbit. If i renew token and secret the request will work as supposed to. The strange thing is that i use your library for few weeks and i never had to renew my token and secret till now.

i hope you can help me out. thank you.

regards, johannes

johannesweber avatar Dec 08 '14 17:12 johannesweber