03-04-2023 04:06 - edited 03-05-2023 09:23
03-04-2023 04:06 - edited 03-05-2023 09:23
My ios application has a feature that can sign in many fitbit user to fetch data simultaneously ( for many relatives ). But when i force the fitbit authenticaion by add prompt=login+consent in endpoint, it always forces to revoke previous token (caching token in cookies) and i can not remove cookies from safari. So, i can not get many user unless clear cookies in safari settings.
Have any solution for my case to not force revoking token?
Thanks in advance.
03-06-2023 13:43
03-06-2023 13:43
Hi @marcobui92
I'm curious about the process you're following to obtain the tokens. What is the reason for logging into everyone's account on a single iOS device? I'm assuming everyone has their own Fitbit mobile device running the Fitbit mobile application to sync their data. If that's the case, once the user's consent once to share their data with your application, you shouldn't need to log into their accounts.
The documentation for the authorize endpoint states you need to use the URL encoded value of the space between "login" and "consent". Have you tried this instead of the + sign? The parameter would look like "prompt=login%20consent".
Gordon