Issue saving refresh_token from Strava API in FlutterFlow

Database & APIs

Hi everyone,

I’m integrating Strava’s /oauth/token in FlutterFlow and ran into an issue:

  • I set up JSON Paths correctly (access_token, refresh_token, expires_at).

  • In the Response Preview the refresh_token looks fine (just the string).

  • But when saving to Firestore, instead of only the token string, FlutterFlow stores the whole response object ({token_type:..., access_token:..., refresh_token:...}).

Firestore field is set as String, Response Type is JSON, and I’m mapping the JSON Path — still the problem happens.

Has anyone experienced this? Could this be a bug or am I missing a step?

Thanks!

What have you tried so far?

I’ve already checked:

  • The Firestore field is set as a String.

  • The action is using the correct variable (refreshtoken) rather than the full body.

  • The API Response Type is configured as JSON.

Still, the problem persists.

Did you check FlutterFlow's Documentation for this topic?
Yes
1