Strava API & handling the AUTH redirect... How do I redirect to my expo app?

Please provide the following:

  1. SDK Version:4.10.1
  2. Platforms(Android/iOS/web/all):all
  3. Add the appropriate “Tag” based on what Expo library you have a question on.

There is an example here in the docs:

But I’m having trouble redirecting back to my expo app since Strava only allows a domain with no slashes.

Here’s my useAuthRequest:

 const [request, response, promptAsync] = useAuthRequest(
    {
      clientId,
      scopes: ["activity:read_all"],
      redirectUri: makeRedirectUri({
        // For usage in bare and standalone
        // the "redirect" must match your "Authorization Callback Domain" in the Strava dev console.
        //native: "your.app://redirect",
        useProxy: false,
        native: "herofit.io",
      }),
    },
    discovery,
  );

I think I’m supposed to set up a deep link, perhaps something like:
herofit://herofit.io

But, I’m unsure how to do this. Anyone have any thoughts?

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.