Please provide the following:
- SDK Version: 47
- Platforms(Android/iOS/web/all): iOS / Expo Go
- Add the appropriate “Tag” based on what Expo library you have a question on.
Hi, I am trying to follow the instructions here: Authentication - 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
and127.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 beredirect
.
Has anyone figured this out for Expo Go?
Thanks