Please provide the following:
- SDK Version: 40
- Platforms(Android/iOS/web/all): iOS
Some relevant code:
const useProxy = Platform.select({
web: false,
default: Constants.appOwnership === "standalone" ? false : true,
})
const SCHEME = Constants.manifest.scheme
const redirectUri = AuthSession.makeRedirectUri({
useProxy,
native: `${SCHEME}://redirect`,
})
const authRequestConfig = {
redirectUri,
clientId: authClientId,
// id_token will return a JWT token
responseType: 'token', //'id_token',
// retrieve the user's profile
scopes: ['read:current_user'],
prompt: 'login',
extraParams: {
// ideally, this will be a random value
nonce: 'nonce',
audience: authAudience,
prompt: 'login'
},
}
const [request, result, promptAsync] = AuthSession.useAuthRequest(authRequestConfig, authRequestDiscovery)
const login = () => promptAsync({ useProxy })
My Auth provider is Auth0 (which apparently was a big mistake as it doesn’t seem expo and auth0 play well together and no one can get a working example going). This code works great in expo go! Clicking on the login button will open a browser to authentication. But it doesn’t work in testflight when I build/submit (clicking the button and no browser opens)… I thought it was maybe something with the standalone vs expo appOwner but I did an archived build using an adhoc provisioning profile and manually installed it into the device and it works fine there (clicking login opens a auth session browsers)! Just wont open a browser for authentication in testflight… So FRICKEN FRUSTRATING!!! Trying to capture logs on the device is hopeless as there are so many logs coming from the device every second that I can’t find any debug information I’m sending to console… I decided to just submit this build to the app store for review but I’m guessing if testflight wont let the auth session browser open (like literally nothing is happening when I click the login), then I’m guessing it wont work for the app store reviewer, or even the end user once it’s on the store… I really need help on this one as I’ve been struggling with this for over a week and a half now.
Simulator: Works as expected
Expo Go client via publish: Works as expected
Archived Ad Hoc standalone manual install: Works as expected
Testflight: Nothing… notta… Zip… zilch…