Setup & configuration
In order for the sign-in flow to work, a few configuration variables need to be set for the application:
Setting the application identifier
In your app's entry point, you need to set the application identifier that your app is registered with on the Infinity platform:
InfinityAuth.applicationIdentifier = 'ch.nextbusiness.infinity.example'
Sign-in redirect deep link
You need to provide a deep link for your app that the sign-in provider can use to redirect back to the app once a successful sign-in has been completed.
InfinityAuth.signInRedirectDeepLink = YOUR_REDIRECT_DEEP_LINK_HERE
Using expo-linking
A simple way to generate a deep link for Expo-managed apps, you can use expo-linking to generate a link:
import * as Linking from 'expo-linking'
InfinityAuth.signInRedirectDeepLink = Linking.createURL('login')
Keep in mind you'll to register a custom URL scheme for the app (e.g. exampleapp://) for it to work in final builds outside of Expo Go.