auth example with azure ad

We ran into the same issue using Azure AD. What we did was use the Linking library and have it generate a redirect url:

const baseRedirectUrl = Linking.makeUrl('/')

For local testing it would then be exp://127.0.0.1/--/auth and for builds it would be
com.buildidentifier.whatever:///auth.

Then it worked for us perfectly!

Note Make sure that your metro bundler is set to local and not lan.