10-02-2017 23:16
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post

10-02-2017 23:16
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
- Who Voted for this post?
{\"redirectUrl\":\"https://app-settings.fitbitdevelopercontent.com/simple-redirect.html\",\"codeVerifier\":\"...\"}
<Oauth settingsKey="gcalCreds" title="Google Calendar" label="Google Calendar" status="Connect" authorizeUrl="https://accounts.google.com/o/oauth2/v2/auth" requestTokenUrl="https://www.googleapis.com/oauth2/v4/token" clientId="..." clientSecret="..." scope="https://www.googleapis.com/auth/calendar.readonly" pkce=true onAccessToken={async (accessToken) => { console.log(accessToken); }} />
Answered! Go to the Best Answer.
Accepted Solutions
10-22-2017 22:02
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post

10-22-2017 22:02
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
- Who Voted for this post?
Looks like this works now! One of the Fitbit devs (Chapel in Discord) apparently fixed it recently.
10-03-2017 02:28
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post


10-03-2017 02:28
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
- Who Voted for this post?
It certainly looks correct.
Have you added this url to your Google oAuth settings?
https://app-settings.fitbitdevelopercontent.com/simple-redirect.html
10-03-2017 09:43 - edited 10-03-2017 09:44
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post

10-03-2017 09:43 - edited 10-03-2017 09:44
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
Yup, that's in there:
I'm testing on iOS, if that makes a difference.

10-03-2017 23:36 - edited 10-03-2017 23:53
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post

10-03-2017 23:36 - edited 10-03-2017 23:53
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
This evening I'm seeing different behavior. I updated to the latest developer firmware, but I assume that shouldn't make a difference with respect to the behavior of the Settings page on the device.
Now, my onAccessToken function is getting called. Maybe it was getting called before and I just didn't see it because it just showed up in the logging output as [object Object]. Or maybe it actually wasn't being called... I'm not sure. At any rate, I changed the logging to be more clear, and now I see that it is being called. However, this is what I'm getting back:
{"error":"invalid_request","error_description":"Invalid parameter value for redirect_uri: Missing scheme: undefined"}
So now I'm not even getting the "codeVerifier" bit that I was before. My best guess about this error is that it looks like the OAuthButton may not be populating the redirect_uri parameter in the request body, as described here?

10-22-2017 22:02
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post

10-22-2017 22:02
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
- Who Voted for this post?
Looks like this works now! One of the Fitbit devs (Chapel in Discord) apparently fixed it recently.
12-28-2017 17:30
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post

12-28-2017 17:30
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
Are you going make your calendar app available in the Fitbit app.

04-20-2019 05:04
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post

04-20-2019 05:04
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
I am currently also trying to achieve this and still get the same CORS error.
Did you change anything or did it just work out of the box?

