Expo Authentication + Strava ... redirect_url

Please provide the following:

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

Hi, I am trying to follow the instructions here: Authentication with OAuth or OpenID providers - Expo Documentation
and I have everything working but the redirect_url…

On Expo Go is this even possible? Or do I need to build a standalone to test?

My code is as follows:

const [request, response, promptAsync] = useAuthRequest(
    {
      clientId: "<client_id>",
      scopes: ["activity:read_all"],
      redirectUri: makeRedirectUri({native: "<what should go here for expo go" }),
    },
    discovery
  );

Now, I know you need to just place a domain in the strava console, and the documentation states:

URL to which the user will be redirected after authentication. Must be within the callback domain specified by the application. localhost and 127.0.0.1 are white-listed.

and

  • The “Authorization Callback Domain” refers to the final path component of your redirect URI. Ex: In the URI com.bacon.myapp://redirect the domain would be redirect.

Has anyone figured this out for Expo Go?

Thanks

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